]> granicus.if.org Git - sudo/commitdiff
Fix uninitialized variable.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 20 Feb 2010 20:13:11 +0000 (15:13 -0500)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 20 Feb 2010 20:13:11 +0000 (15:13 -0500)
src/script.c

index 7c022ce9bbaa63798934576c2f0156295530f8b4..d61e90789ca2fa4974998663c5f7858c6e4229cb 100644 (file)
@@ -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 */