$OpenBSD: patch-src_state_c,v 1.3 2009/01/26 18:17:25 jasper Exp $
--- src/state.c.orig	Mon Nov  3 22:19:54 2003
+++ src/state.c	Sun Oct 12 17:01:58 2008
@@ -754,7 +754,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;
 
 	assert(v);
