]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/gshadow.c: Move zeroing to within build_list()
authorAlejandro Colomar <alx@kernel.org>
Tue, 5 Nov 2024 13:56:14 +0000 (14:56 +0100)
committerSerge Hallyn <serge@hallyn.com>
Fri, 6 Dec 2024 03:20:59 +0000 (21:20 -0600)
commitecce8f098d1e65be873f33f8c71d2d5023f97916
treeeaa6cf925c086e0fbbe1a9d6308bc01e40fe637b
parent712278add163781a2257cdcf4bd8f91d6e222232
lib/gshadow.c: Move zeroing to within build_list()

This makes build_list() less dependent on the context.
It starts from clean, whatever the state before the call was.
I was having a hard time understanding the reallocation,
until I saw that we were zeroing everything right before the call.

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