[Python-checkins] cpython (3.3): Silence compiler warning about an uninitialized variable

raymond.hettinger python-checkins at python.org
Sun Aug 4 20:51:44 CEST 2013


http://hg.python.org/cpython/rev/ed8d94e4862a
changeset:   85022:ed8d94e4862a
branch:      3.3
parent:      85019:b7d764807343
user:        Raymond Hettinger <python at rcn.com>
date:        Sun Aug 04 11:51:03 2013 -0700
summary:
  Silence compiler warning about an uninitialized variable

files:
  Objects/unicodeobject.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -3323,7 +3323,7 @@
     wchar_t *wstr;
     PyObject *bytes = NULL;
     char *errmsg;
-    PyObject *reason;
+    PyObject *reason = NULL;
     PyObject *exc;
     size_t error_pos;
     int surrogateescape;

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list