mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
9c170b3d52
The very few places that rely on malloc/calloc of a zero-size region
won't attempt to dereference it, so just return NULL rather than rolling
the dice with the underlying malloc implementation.
Reported by: brooks, Shawn Webb
(cherry picked from commit
|
||
---|---|---|
.. | ||
tests | ||
file.c | ||
grep.1 | ||
grep.c | ||
grep.h | ||
Makefile | ||
Makefile.depend | ||
Makefile.depend.options | ||
queue.c | ||
util.c | ||
zgrep.1 | ||
zgrep.sh |