From 14affb84caaa4693ca65276d2a072af164f3a162 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Wed, 22 Dec 2010 05:22:17 +0000 Subject: [PATCH] fix a compiler warning about err_msg potentially being used uninitialized. --- Modules/_posixsubprocess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.40.0