# HG changeset patch # User Matti Hamalainen # Date 1192800318 -10800 # Node ID 61b2da934f95b658165c4ff1622ad8fabe00bb31 # Parent e307e455aca089d94eaf1ac64f959687369b4779 Assert that new data is not NULL. diff -r e307e455aca0 -r 61b2da934f95 src/audacious/tuple_compiler.c --- a/src/audacious/tuple_compiler.c Fri Oct 19 16:13:17 2007 +0300 +++ b/src/audacious/tuple_compiler.c Fri Oct 19 16:25:18 2007 +0300 @@ -123,7 +123,8 @@ gint tuple_evalctx_add_var(TupleEvalContext *ctx, const gchar *name, const gboolean istemp, const gint type) { gint i, ref = -1; - TupleEvalVar * tmp = g_new0(TupleEvalVar, 1); + TupleEvalVar *tmp = g_new0(TupleEvalVar, 1); + assert(tmp != NULL); tmp->name = g_strdup(name); tmp->istemp = istemp;