diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-01-10 15:29:16 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-01-10 15:29:16 (GMT) |
commit | 8e914d9a1d67e921e3e9e4209ee08c8e54eb2a7a (patch) | |
tree | 9458d9a6fc3ff125cf651da182aaa2e885d60623 /Modules/datetimemodule.c | |
parent | 3cb68a25126b1436e4cd50902bc5362a1774018d (diff) | |
download | cpython-8e914d9a1d67e921e3e9e4209ee08c8e54eb2a7a.zip cpython-8e914d9a1d67e921e3e9e4209ee08c8e54eb2a7a.tar.gz cpython-8e914d9a1d67e921e3e9e4209ee08c8e54eb2a7a.tar.bz2 |
Get rid of compiler warnings
Diffstat (limited to 'Modules/datetimemodule.c')
-rw-r--r-- | Modules/datetimemodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/datetimemodule.c b/Modules/datetimemodule.c index 5840fb8..b8503d2 100644 --- a/Modules/datetimemodule.c +++ b/Modules/datetimemodule.c @@ -3668,8 +3668,9 @@ time_new(PyTypeObject *type, PyObject *args, PyObject *kw) static void time_dealloc(PyDateTime_Time *self) { - if (self->hastzinfo) + if (self->hastzinfo) { Py_XDECREF(self->tzinfo); + } self->ob_type->tp_free((PyObject *)self); } @@ -4030,7 +4031,6 @@ static PyObject * time_unpickler(PyObject *module, PyObject *arg) { PyDateTime_Time *self; - PyObject *tzinfo = Py_None; /* We don't want to allocate space for tzinfo if it's not needed. * Figuring that out in advance is irritating, so for now we |