]> git.ipfire.org Git - thirdparty/shadow.git/commit
src/sulogin.c: Remove 'static' from local variable, but keep initialization
authorAlejandro Colomar <alx@kernel.org>
Wed, 17 Jan 2024 16:08:50 +0000 (17:08 +0100)
committerSerge Hallyn <serge@hallyn.com>
Thu, 18 Jan 2024 00:11:19 +0000 (18:11 -0600)
commit08ae7af111aaf8eb399b6ca2d473f4fc0c353dc6
tree5e041523a76d263460131dcec532c37da1ffff97
parent4edda5d8baaceb1d38d3d9e79709dacb5b82798f
src/sulogin.c: Remove 'static' from local variable, but keep initialization

We don't need 'static', because it's in main(), which is only called
once.  However, we will need initialization as if it were 'static', so
use ={} to initialize it.  This will allow freeing the pointers before
they have been allocated.

Cc: Samanta Navarro <ferivoz@riseup.net>
Suggested-by: Serge Hallyn <serge@hallyn.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
src/sulogin.c