Mercurial > audlegacy
comparison src/audacious/tuple_formatter.c @ 3522:23bf72b8c95c trunk
tuple_formatter_expression_empty() was fundamentally broken, fixed.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 12 Sep 2007 23:19:46 +0300 |
parents | 2f5ef443b231 |
children | a76b55624e51 |
comparison
equal
deleted
inserted
replaced
3521:2f5ef443b231 | 3522:23bf72b8c95c |
---|---|
463 TupleValueType type = tuple_get_value_type(tuple, -1, expression); | 463 TupleValueType type = tuple_get_value_type(tuple, -1, expression); |
464 | 464 |
465 if (type == TUPLE_UNKNOWN) | 465 if (type == TUPLE_UNKNOWN) |
466 return TRUE; | 466 return TRUE; |
467 | 467 |
468 if (type == TUPLE_INT && tuple_get_int(tuple, -1, expression) != 0) | 468 if (type == TUPLE_INT) |
469 return FALSE; | 469 return (tuple_get_int(tuple, -1, expression) == 0); |
470 | 470 |
471 iter = tuple_get_string(tuple, -1, expression); | 471 iter = tuple_get_string(tuple, -1, expression); |
472 if (!iter) | |
473 return TRUE; | |
472 | 474 |
473 while (ret && *iter != '\0') | 475 while (ret && *iter != '\0') |
474 { | 476 { |
475 if (*iter == ' ') | 477 if (*iter == ' ') |
476 iter++; | 478 iter++; |