]> granicus.if.org Git - python/commitdiff
fix a compiler warning about err_msg potentially being used uninitialized.
authorGregory P. Smith <greg@mad-scientist.com>
Wed, 22 Dec 2010 05:22:17 +0000 (05:22 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Wed, 22 Dec 2010 05:22:17 +0000 (05:22 +0000)
Modules/_posixsubprocess.c

index 5f226a851d318ae2d8d18f35c33d0fa96a1e1e16..d2f8d4581d425a602fb6536e6cf1bbe645bab959 100644 (file)
@@ -53,7 +53,7 @@ static void child_exec(char *const exec_array[],
 {
     int i, saved_errno, fd_num;
     PyObject *result;
-    const char* err_msg;
+    const char* err_msg = "";
     /* Buffer large enough to hold a hex integer.  We can't malloc. */
     char hex_errno[sizeof(saved_errno)*2+1];