From: Todd C. Miller Date: Sat, 20 Feb 2010 20:13:11 +0000 (-0500) Subject: Fix uninitialized variable. X-Git-Tag: SUDO_1_8_0~883 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=afcac0824687ec635944a0b303ea13426dd4221e;p=sudo Fix uninitialized variable. --- diff --git a/src/script.c b/src/script.c index 7c022ce9b..d61e90789 100644 --- a/src/script.c +++ b/src/script.c @@ -280,7 +280,7 @@ script_execve(struct command_details *details, char *argv[], char *envp[], sigaction_t sa; struct script_buf input, output; int n, nready; - int relaysig, sv[2]; + int relaysig = 0, sv[2]; fd_set *fdsr, *fdsw; int rbac_enabled = 0; int maxfd; @@ -712,7 +712,7 @@ script_child(const char *path, char *argv[], char *envp[], int backchannel, int if (n != sizeof(cstat)) break; /* XXX - error, kill child and exit */ #ifdef SCRIPT_DEBUG - warningx("sent signo to parent"); + warningx("sent wait status to parent"); #endif if (!WIFSTOPPED(status)) { /* XXX */