diff options
| author | Gregory P. Smith <greg@mad-scientist.com> | 2010-12-22 05:22:17 (GMT) |
|---|---|---|
| committer | Gregory P. Smith <greg@mad-scientist.com> | 2010-12-22 05:22:17 (GMT) |
| commit | 14affb84caaa4693ca65276d2a072af164f3a162 (patch) | |
| tree | 0630e33e5148b76fe7a469cee294e3e792d8bac7 /Modules | |
| parent | b9cc00caab2d86d73046edec84a140c2a3708e4f (diff) | |
| download | cpython-14affb84caaa4693ca65276d2a072af164f3a162.zip cpython-14affb84caaa4693ca65276d2a072af164f3a162.tar.gz cpython-14affb84caaa4693ca65276d2a072af164f3a162.tar.bz2 | |
fix a compiler warning about err_msg potentially being used uninitialized.
Diffstat (limited to 'Modules')
| -rw-r--r-- | Modules/_posixsubprocess.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c index 5f226a8..d2f8d45 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]; |
