From 85115eca629869deb80324a6d8f5c5152db0b168 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Tue, 13 Sep 2016 21:41:36 +0200 Subject: [PATCH] Fix invalid ptr assignment for --enable-static builds Also changes the default to set $HOME to / instead of nothing. This can of course be improved immensely. Pull requests always welcome ;-) Signed-off-by: Joachim Nilsson --- helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers.c b/helpers.c index a33340fc..061b2d76 100644 --- a/helpers.c +++ b/helpers.c @@ -216,7 +216,7 @@ void logit(int prio, const char *fmt, ...) int getuser(char *username, char **home) { #ifdef ENABLE_STATIC - home = NULL; /* XXX: Fixme */ + *home = "/"; /* XXX: Fixme */ return fgetint("/etc/passwd", "x:\n", username); #else struct passwd *usr;