aboutsummaryrefslogtreecommitdiffstats
path: root/src/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exec.c')
-rw-r--r--src/exec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/exec.c b/src/exec.c
index 578e2b11..2a03ba80 100644
--- a/src/exec.c
+++ b/src/exec.c
@@ -211,7 +211,8 @@ extern char **environ;
*/
int osmo_system_nowait2(const char *command, const char **env_whitelist, char **addl_env, const char *user)
{
- struct passwd _pw, *pw;
+ struct passwd _pw;
+ struct passwd *pw = NULL;
int getpw_buflen = sysconf(_SC_GETPW_R_SIZE_MAX);
int rc;