diff options
author | Guido van Rossum <guido@python.org> | 2007-08-25 03:14:09 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-25 03:14:09 (GMT) |
commit | b908126c3a3af0da57c66c9f3f134fffe8eb884e (patch) | |
tree | 8cd97fed7230b3d11d524c3a1bcd3175dbe15c11 /Modules/timemodule.c | |
parent | 8c6632636807c35bee40210ed8483c1eca82664f (diff) | |
download | cpython-b908126c3a3af0da57c66c9f3f134fffe8eb884e.zip cpython-b908126c3a3af0da57c66c9f3f134fffe8eb884e.tar.gz cpython-b908126c3a3af0da57c66c9f3f134fffe8eb884e.tar.bz2 |
Reorder code and decls so it's compilable with gcc 2.96 (C89).
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r-- | Modules/timemodule.c | 3 |
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); |