]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Reorder code and decls so it's compilable with gcc 2.96 (C89).
authorGuido van Rossum <guido@python.org>
Sat, 25 Aug 2007 03:14:09 +0000 (03:14 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 25 Aug 2007 03:14:09 +0000 (03:14 +0000)
Modules/timemodule.c

index c7acf3a9b548e649ad00fb93b5bbe4e4b6660698..cc302377e4fa3ec5400cf517cae31eb4e7526fa9 100644 (file)
@@ -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);