rmyorston / pdpmake

Public domain POSIX make
https://frippery.org/make
Other
103 stars 10 forks source link

utils: silence GCC -Wanalyzer-null-argument #51

Closed dsan-dev closed 1 month ago

dsan-dev commented 1 month ago

The "Nonportable behavior" subsection of the Linux man-page indicates that malloc, calloc, and realloc may return NULL without setting errno.

Thus, in non-POSIX platforms, GCC -fanalyzer correctly warns about possible NULL dereferences.

rmyorston commented 1 month ago

Applied, thanks.