aboutsummaryrefslogtreecommitdiff
path: root/src/start-stop-daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/start-stop-daemon.c')
-rw-r--r--src/start-stop-daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/start-stop-daemon.c b/src/start-stop-daemon.c
index 51e4dee8..76158c65 100644
--- a/src/start-stop-daemon.c
+++ b/src/start-stop-daemon.c
@@ -880,10 +880,10 @@ int start_stop_daemon (int argc, char **argv)
len = sizeof (char *) * strlen (path) + 6;
newpath = rc_xmalloc (len);
snprintf (newpath, len, "PATH=%s", path);
- newenv = rc_strlist_add (newenv, newpath);
+ rc_strlist_add (&newenv, newpath);
free (newpath);
} else
- newenv = rc_strlist_add (newenv, env);
+ rc_strlist_add (&newenv, env);
}
umask (022);