Mercurial > audlegacy
diff src/audacious/tuple_compiler.c @ 3811:61b2da934f95 trunk
Assert that new data is not NULL.
| author | Matti Hamalainen <ccr@tnsp.org> |
|---|---|
| date | Fri, 19 Oct 2007 16:25:18 +0300 |
| parents | e307e455aca0 |
| children | 80996bb4213f |
line wrap: on
line diff
--- 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;
