summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2013-08-04 18:51:03 (GMT)
committerRaymond Hettinger <python@rcn.com>2013-08-04 18:51:03 (GMT)
commite56666d17f0b92f474ca85b65ccaafc4c57aa36b (patch)
treebf482a5abca15fde58182d1d18f81cdbef00c507
parentdd225e4c643507f2d8c6f222edbfe4a6df2d2b88 (diff)
downloadcpython-e56666d17f0b92f474ca85b65ccaafc4c57aa36b.zip
cpython-e56666d17f0b92f474ca85b65ccaafc4c57aa36b.tar.gz
cpython-e56666d17f0b92f474ca85b65ccaafc4c57aa36b.tar.bz2
Silence compiler warning about an uninitialized variable
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 446520a..440d35a 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -3323,7 +3323,7 @@ PyUnicode_EncodeLocale(PyObject *unicode, const char *errors)
wchar_t *wstr;
PyObject *bytes = NULL;
char *errmsg;
- PyObject *reason;
+ PyObject *reason = NULL;
PyObject *exc;
size_t error_pos;
int surrogateescape;