]> git.ipfire.org Git - thirdparty/shadow.git/commit
realloc(NULL, ...) is equivalent to malloc(...)
authorAlejandro Colomar <alx@kernel.org>
Sat, 27 May 2023 13:35:13 +0000 (15:35 +0200)
committerSerge Hallyn <serge@hallyn.com>
Thu, 8 Jun 2023 14:05:39 +0000 (09:05 -0500)
commitf2ac1e254044aa7de1bd4b8deb08b8017813f730
tree1295ca912c60ff5c0495d87d0101029bafeca13d
parent09775d3718df216c75b62d73bbcc5aa060e0fc94
realloc(NULL, ...) is equivalent to malloc(...)

Don't have a branch for when the old pointer is NULL.  realloc(3) can
handle that case just fine.

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