tNULL pointer dereference bug fixed - vaccinewars - be a doctor and try to vaccinate the world
git clone git://src.adamsgaard.dk/vaccinewars
Log
Files
Refs
README
LICENSE
---
commit f352a9079a7907f5d1aed2befaa77dc2eeb4b5a5
parent bead22d4de1db3ef56c7be794b8f2bc5d6d1af3a
Author: Ben Webb 
Date:   Tue,  6 Nov 2001 22:53:07 +0000

NULL pointer dereference bug fixed


Diffstat:
  M src/error.c                         |       2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/error.c b/src/error.c
t@@ -168,6 +168,6 @@ void g_string_assign_error(GString *str,LastError *error) {
 }
 
 void g_string_append_error(GString *str,LastError *error) {
-  if (!error->type) return;
+  if (!error || !error->type) return;
   (*error->type->AppendErrorString)(str,error);
 }