summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/nlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gen/nlist.c b/lib/libc/gen/nlist.c
index 5dd365be8c8..9bdec1b0da4 100644
--- a/lib/libc/gen/nlist.c
+++ b/lib/libc/gen/nlist.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nlist.c,v 1.53 2008/06/04 21:12:50 deraadt Exp $ */
+/* $OpenBSD: nlist.c,v 1.54 2011/04/08 15:18:18 deraadt Exp $ */
/*
* Copyright (c) 1989, 1993
* The Regents of the University of California. All rights reserved.
@@ -73,7 +73,7 @@ __aout_fdnlist(int fd, struct nlist *list)
struct exec exec;
if (pread(fd, &exec, sizeof(exec), (off_t)0) != sizeof(exec) ||
- N_BADMAG(exec) || exec.a_syms == NULL)
+ N_BADMAG(exec) || exec.a_syms == 0)
return (-1);
stroff = N_STROFF(exec);