Mercurial > audlegacy
changeset 3330:8745ffb73f49 trunk
Automated merge with ssh://hg.atheme.org//hg/audacious
author | William Pitcock <nenolod@atheme-project.org> |
---|---|
date | Sat, 11 Aug 2007 05:44:31 -0500 |
parents | 70149c3555f4 (diff) e20c1f720153 (current diff) |
children | 9c53688bb559 |
files | |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/audacious/tuple.c Sat Aug 11 12:03:56 2007 +0200 +++ b/src/audacious/tuple.c Sat Aug 11 05:44:31 2007 -0500 @@ -123,11 +123,13 @@ g_return_val_if_fail(tuple != NULL, FALSE); g_return_val_if_fail(field != NULL, FALSE); - g_return_val_if_fail(string != NULL, FALSE); if (mowgli_dictionary_find(tuple->dict, field)) tuple_disassociate(tuple, field); + if (string == NULL) + return TRUE; + value = mowgli_heap_alloc(tuple_value_heap); value->type = TUPLE_STRING; value->value.string = g_strdup(string);