[Python-checkins] r87436 - python/branches/py3k/Modules/_posixsubprocess.c
gregory.p.smith
python-checkins at python.org
Wed Dec 22 06:22:17 CET 2010
Author: gregory.p.smith
Date: Wed Dec 22 06:22:17 2010
New Revision: 87436
Log:
fix a compiler warning about err_msg potentially being used uninitialized.
Modified:
python/branches/py3k/Modules/_posixsubprocess.c
Modified: python/branches/py3k/Modules/_posixsubprocess.c
==============================================================================
--- python/branches/py3k/Modules/_posixsubprocess.c (original)
+++ python/branches/py3k/Modules/_posixsubprocess.c Wed Dec 22 06:22:17 2010
@@ -53,7 +53,7 @@
{
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];
More information about the Python-checkins
mailing list