mirror of
https://github.com/troglobit/finit.git
synced 2026-11-03 13:28:27 +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
+2
-1
+2
-1
@@ -367,7 +367,8 @@ int print_result(int fail)
|
|||||||
int getuser(char *username, char **home)
|
int getuser(char *username, char **home)
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_STATIC
|
#ifdef ENABLE_STATIC
|
||||||
*home = "/"; /* XXX: Fixme */
|
if (home)
|
||||||
|
*home = "/"; /* XXX: Fixme */
|
||||||
return fgetint("/etc/passwd", "x:\n", username);
|
return fgetint("/etc/passwd", "x:\n", username);
|
||||||
#else
|
#else
|
||||||
struct passwd *usr;
|
struct passwd *usr;
|
||||||
|
|||||||
Reference in new issue
Block a user