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: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14affb84caaa4693ca65276d2a072af164f3a162;p=python fix a compiler warning about err_msg potentially being used uninitialized. --- diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c index 5f226a851d..d2f8d4581d 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];