diff options
Diffstat (limited to 'usr.bin/m4/look.c')
-rw-r--r-- | usr.bin/m4/look.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/m4/look.c b/usr.bin/m4/look.c index a9bfe1e5433..c99cc1a8ae9 100644 --- a/usr.bin/m4/look.c +++ b/usr.bin/m4/look.c @@ -1,4 +1,4 @@ -/* $OpenBSD: look.c,v 1.18 2006/01/20 23:10:19 espie Exp $ */ +/* $OpenBSD: look.c,v 1.19 2009/06/26 22:03:17 guenther Exp $ */ /* * Copyright (c) 1989, 1993 @@ -223,7 +223,8 @@ macro_for_all(void (*f)(const char *, struct macro_definition *)) for (n = ohash_first(¯os, &i); n != NULL; n = ohash_next(¯os, &i)) - f(n->name, n->d); + if (n->d != NULL) + f(n->name, n->d); } void |