]> git.ipfire.org Git - thirdparty/shadow.git/commit
Rely on realloc(NULL, ...) being equivalent to malloc(...)
authorAlejandro Colomar <alx@kernel.org>
Sat, 4 Feb 2023 20:21:36 +0000 (21:21 +0100)
committerSerge Hallyn <serge@hallyn.com>
Fri, 24 Feb 2023 02:28:43 +0000 (20:28 -0600)
commit0e1d0179939434361b561459ccd009480dc16b7d
tree0313efa03b6cb4c1444ff5cc7ca1c5bb3fce5f48
parent5c5dc756419e1d3cad63c66c4bb803eadf1074fd
Rely on realloc(NULL, ...) being equivalent to malloc(...)

This is guaranteed by ISO C.  Now that we require ISO C (and even POSIX)
to compile, we can simplify this code.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/sgetgrent.c