diff options
| author | Guido van Rossum <guido@python.org> | 2007-08-25 03:14:09 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2007-08-25 03:14:09 +0000 |
| commit | b908126c3a3af0da57c66c9f3f134fffe8eb884e (patch) | |
| tree | 8cd97fed7230b3d11d524c3a1bcd3175dbe15c11 | |
| parent | 8c6632636807c35bee40210ed8483c1eca82664f (diff) | |
| download | cpython-git-b908126c3a3af0da57c66c9f3f134fffe8eb884e.tar.gz | |
Reorder code and decls so it's compilable with gcc 2.96 (C89).
| -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 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); |
