summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-05-04 05:14:03 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-05-04 05:14:03 (GMT)
commit3e2e368f3b493399f3eda04a048863713e29d160 (patch)
treeb0f372eec24baecc934d7f7c5a9391ee8f48e861 /Modules
parent35a8f0dee5252555d0749e3318bb65cb3442828d (diff)
downloadcpython-3e2e368f3b493399f3eda04a048863713e29d160.zip
cpython-3e2e368f3b493399f3eda04a048863713e29d160.tar.gz
cpython-3e2e368f3b493399f3eda04a048863713e29d160.tar.bz2
avoid unitialized memory
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 7a02b75..100d539 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -3576,7 +3576,7 @@ static int
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;