diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-04-08 15:18:19 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-04-08 15:18:19 +0000 |
commit | 983193df1321efced019f6b05de2d20665be73a1 (patch) | |
tree | 8b1603e603709895d1fa9a42770f41e521ca1abe /lib | |
parent | 62b8ec21f20720206a9e7e9fb66d187624457499 (diff) |
a_syms is an int, not a pointer; ok miod
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/gen/nlist.c | 4 |
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); |