From e56666d17f0b92f474ca85b65ccaafc4c57aa36b Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 4 Aug 2013 11:51:03 -0700 Subject: [PATCH] Silence compiler warning about an uninitialized variable --- Objects/unicodeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 446520ae93a..440d35ad0cb 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;