changeset 3824:9ecd41c7f348

Check for NULL strings.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 20 Oct 2007 06:37:38 +0300
parents 860392c82b29
children 2fa6737082ae
files src/audacious/tuple_compiler.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/tuple_compiler.c	Sat Oct 20 06:17:56 2007 +0300
+++ b/src/audacious/tuple_compiler.c	Sat Oct 20 06:37:38 2007 +0300
@@ -707,7 +707,7 @@
             result = TRUE;
             tmps2 = var0->fieldref->value.string;
             
-            while (result && *tmps2 != '\0') {
+            while (result && tmps2 && *tmps2 != '\0') {
               gunichar uc = g_utf8_get_char(tmps2);
               if (g_unichar_isspace(uc))
                 tmps2 = g_utf8_next_char(tmps2);