Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e56666d

Browse files
committed
Silence compiler warning about an uninitialized variable
1 parent dd225e4 commit e56666d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/unicodeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3323,7 +3323,7 @@ PyUnicode_EncodeLocale(PyObject *unicode, const char *errors)
33233323
wchar_t *wstr;
33243324
PyObject *bytes = NULL;
33253325
char *errmsg;
3326-
PyObject *reason;
3326+
PyObject *reason = NULL;
33273327
PyObject *exc;
33283328
size_t error_pos;
33293329
int surrogateescape;

0 commit comments

Comments
 (0)