From: Gregory P. Smith Date: Wed, 22 Dec 2010 05:22:17 +0000 (+0000) Subject: fix a compiler warning about err_msg potentially being used uninitialized. X-Git-Tag: v3.2rc1~378 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=14affb84caaa4693ca65276d2a072af164f3a162;p=thirdparty%2FPython%2Fcpython.git fix a compiler warning about err_msg potentially being used uninitialized. --- diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c index 5f226a851d31..d2f8d4581d42 100644 --- a/Modules/_posixsubprocess.c +++ b/Modules/_posixsubprocess.c @@ -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];