summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libc/stdlib
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2014-10-23 22:42:56 +0000
committerdes <des@FreeBSD.org>2014-10-23 22:42:56 +0000
commit3312d35f6be647446f29bd96d6e14b205432a5ae (patch)
tree5c2d2655458faf2c9cee0ac891115138eb374030 /contrib/netbsd-tests/lib/libc/stdlib
parent6662cc119473f4a20b6674244e7a1ca02f6770b8 (diff)
downloadFreeBSD-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')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud