summaryrefslogtreecommitdiff
path: root/net/gq/files/patch-src__state.c
blob: 3f0c6d5492811de0dd2569ea8afb5187b431d5b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- src/state.c.orig	2008-01-09 16:35:12 UTC
+++ src/state.c
@@ -36,7 +36,7 @@
 #include <errno.h>
 
 #include <glib/gi18n.h>
-#include <glib/gmessages.h>
+#include <glib.h>
 #include <gtk/gtk.h>
 
 #include "configfile.h"
@@ -806,7 +806,7 @@ static void state_valueE(struct parser_context *ctx,
 	}
     }
 
-    if (n != NULL && v->type != 0) {
+    if (n != NULL && v!=NULL && v->type != 0) {
 	char *ep;
 
 	g_assert(v);