From: Raymond Hettinger Date: Sun, 4 Aug 2013 18:51:03 +0000 (-0700) Subject: Silence compiler warning about an uninitialized variable X-Git-Tag: v3.4.0a2~305^2^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e56666d17f0b92f474ca85b65ccaafc4c57aa36b;p=thirdparty%2FPython%2Fcpython.git Silence compiler warning about an uninitialized variable --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 446520ae93ac..440d35ad0cb8 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;