From: Guido van Rossum Date: Sat, 25 Aug 2007 03:14:09 +0000 (+0000) Subject: Reorder code and decls so it's compilable with gcc 2.96 (C89). X-Git-Tag: v3.0a1~268 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b908126c3a3af0da57c66c9f3f134fffe8eb884e;p=thirdparty%2FPython%2Fcpython.git Reorder code and decls so it's compilable with gcc 2.96 (C89). --- diff --git a/Modules/timemodule.c b/Modules/timemodule.c index c7acf3a9b548..cc302377e4fa 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);