]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/gshadow.c: sgetsgent(): Remove superfluous condition
authorAlejandro Colomar <alx@kernel.org>
Mon, 4 Nov 2024 20:47:42 +0000 (21:47 +0100)
committerSerge Hallyn <serge@hallyn.com>
Fri, 6 Dec 2024 03:20:59 +0000 (21:20 -0600)
commit712278add163781a2257cdcf4bd8f91d6e222232
treeac78d9a1ab4b6519987f9b23ffea841812aac82b
parentde4715d978fbc63d3304190e4644fe6bea24722f
lib/gshadow.c: sgetsgent(): Remove superfluous condition

If n was 0, it doesn't hurt to set it again to 0;
and the list would be NULL, so it doesn't hurt free(3)ing it
and setting to NULL again either.

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