summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2019-06-15 14:33:32 +0200
committerGuillem Jover <guillem@hadrons.org>2019-08-08 03:22:09 +0200
commit3aaedb12086a77c5ea7564eb3b5b2f02f788fe61 (patch)
treeca07eedd154459533164b0275fc8e532f709bfd7 /man
parent2c754f435b18a642f023278fc2372f2186a4ed8b (diff)
nlist: Check whether the nl argument is not NULL
This prevents programming errors. Reported-by: Daniel Hodson <daniel@elttam.com.au> Based-on-patch-by: Daniel Hodson <daniel@elttam.com.au> Signed-off-by: Guillem Jover <guillem@hadrons.org>
Diffstat (limited to 'man')
-rw-r--r--man/nlist.3bsd5
1 files changed, 4 insertions, 1 deletions
diff --git a/man/nlist.3bsd b/man/nlist.3bsd
index 7dd2377..beb32a3 100644
--- a/man/nlist.3bsd
+++ b/man/nlist.3bsd
@@ -72,7 +72,10 @@ The last entry in the list is always
The number of invalid entries is returned if successful; otherwise,
if the file
.Fa filename
-does not exist or is not executable, the returned value is \-1.
+does not exist or is not executable,
+or the nl pointer is
+.Dv NULL ,
+the returned value is \-1.
.Sh SEE ALSO
.Xr elf 5
.Sh HISTORY