opnsense-ports/net/gq/files/patch-src__state.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

20 lines
420 B
C

--- src/state.c.orig 2008-01-09 16:35:12.000000000 +0000
+++ src/state.c 2013-03-06 13:32:20.000000000 +0000
@@ -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 @@
}
}
- if (n != NULL && v->type != 0) {
+ if (n != NULL && v!=NULL && v->type != 0) {
char *ep;
g_assert(v);