mirror of
https://github.com/troglobit/finit.git
synced 2026-11-13 17:00:16 +00:00
Minor, ensure pointer is legit in --enable-static mode
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
c22d123ab0
commit
0147e0e64f
1 file changed
+1
@@ -367,6 +367,7 @@ int print_result(int fail)
|
|||||||
int getuser(char *username, char **home)
|
int getuser(char *username, char **home)
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_STATIC
|
#ifdef ENABLE_STATIC
|
||||||
|
if (home)
|
||||||
*home = "/"; /* XXX: Fixme */
|
*home = "/"; /* XXX: Fixme */
|
||||||
return fgetint("/etc/passwd", "x:\n", username);
|
return fgetint("/etc/passwd", "x:\n", username);
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in new issue
Block a user