# HG changeset patch # User Matti Hamalainen # Date 1189628386 -10800 # Node ID 23bf72b8c95c53c750ea47f305efaccffff13d5f # Parent 2f5ef443b231995e36a8528c9d57293d7f25eac9 tuple_formatter_expression_empty() was fundamentally broken, fixed. diff -r 2f5ef443b231 -r 23bf72b8c95c src/audacious/tuple_formatter.c --- a/src/audacious/tuple_formatter.c Wed Sep 12 17:55:44 2007 +0300 +++ b/src/audacious/tuple_formatter.c Wed Sep 12 23:19:46 2007 +0300 @@ -465,10 +465,12 @@ if (type == TUPLE_UNKNOWN) return TRUE; - if (type == TUPLE_INT && tuple_get_int(tuple, -1, expression) != 0) - return FALSE; + if (type == TUPLE_INT) + return (tuple_get_int(tuple, -1, expression) == 0); iter = tuple_get_string(tuple, -1, expression); + if (!iter) + return TRUE; while (ret && *iter != '\0') {