summaryrefslogtreecommitdiffstats
path: root/Modules/timemodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r--Modules/timemodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index c7acf3a..cc30237 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -354,9 +354,10 @@ static int
gettmarg(PyObject *args, struct tm *p)
{
int y;
- memset((void *) p, '\0', sizeof(struct tm));
PyObject *t = NULL;
+ memset((void *) p, '\0', sizeof(struct tm));
+
if (PyTuple_Check(args)) {
t = args;
Py_INCREF(t);