]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Silence compiler warning about an uninitialized variable
authorRaymond Hettinger <python@rcn.com>
Sun, 4 Aug 2013 18:51:03 +0000 (11:51 -0700)
committerRaymond Hettinger <python@rcn.com>
Sun, 4 Aug 2013 18:51:03 +0000 (11:51 -0700)
Objects/unicodeobject.c

index 446520ae93ac7c066b1b34c391df3fc3f82cc5f3..440d35ad0cb896488c05be992eeb060cba2783b7 100644 (file)
@@ -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;