[Python-checkins] r78764 - python/trunk/Modules/_struct.c
mark.dickinson
python-checkins at python.org
Sun Mar 7 18:10:19 CET 2010
Author: mark.dickinson
Date: Sun Mar 7 18:10:19 2010
New Revision: 78764
Log:
Silence compiler warning.
Modified:
python/trunk/Modules/_struct.c
Modified: python/trunk/Modules/_struct.c
==============================================================================
--- python/trunk/Modules/_struct.c (original)
+++ python/trunk/Modules/_struct.c Sun Mar 7 18:10:19 2010
@@ -155,8 +155,11 @@
assert(PyLong_Check(v));
r = v;
}
- else
+ else {
+ r = NULL; /* silence compiler warning about
+ possibly uninitialized variable */
assert(0); /* shouldn't ever get here */
+ }
return r;
}
More information about the Python-checkins
mailing list