diff options
author | des <des@FreeBSD.org> | 2014-10-23 22:42:56 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2014-10-23 22:42:56 +0000 |
commit | 3312d35f6be647446f29bd96d6e14b205432a5ae (patch) | |
tree | 5c2d2655458faf2c9cee0ac891115138eb374030 /contrib/netbsd-tests/lib/libc/stdlib/h_atexit.c | |
parent | 6662cc119473f4a20b6674244e7a1ca02f6770b8 (diff) | |
download | FreeBSD-src-3312d35f6be647446f29bd96d6e14b205432a5ae.zip FreeBSD-src-3312d35f6be647446f29bd96d6e14b205432a5ae.tar.gz |
In all cases except CTLTYPE_STRING, penv is NULL here, so passing it
indiscriminately to printf() and freeenv() is incorrect. Add a NULL
check before freeenv(); as for printf(), we could use req.newptr
instead, but we'd have to select the correct format string based on
the type, and that's too much work for an error message, so just
remove it.
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/stdlib/h_atexit.c')
0 files changed, 0 insertions, 0 deletions