From b908126c3a3af0da57c66c9f3f134fffe8eb884e Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Sat, 25 Aug 2007 03:14:09 +0000 Subject: [PATCH] Reorder code and decls so it's compilable with gcc 2.96 (C89). --- Modules/timemodule.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/timemodule.c b/Modules/timemodule.c index c7acf3a9b5..cc302377e4 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); -- 2.50.0