Re: [Python-Dev] [Python-checkins] cpython: avoid unitialized memory
4 May
2012
4 May
'12
9:39 a.m.
benjamin.peterson
summary: avoid unitialized memory
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -3576,7 +3576,7 @@ split_py_long_to_s_and_ns(PyObject *py_long, time_t *s, long *ns) { int result = 0; - PyObject *divmod; + PyObject *divmod = NULL; divmod = PyNumber_Divmod(py_long, billion); if (!divmod) goto exit;
If I'm not mistaken, divmod was already unconditionally initialized by PyNumber_Divmod(). Stefan Krah
4347
Age (days ago)
4347
Last active (days ago)
0 comments
1 participants
participants (1)
-
Stefan Krah