From: Christian Heimes Date: Wed, 31 Jul 2013 22:08:16 +0000 (+0200) Subject: Initialize utime with 0. It fixes a couple of compiler warnung: X-Git-Tag: v3.4.0a1~32^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b3c872403d0d2b00a1a383190d3e14eb94e84df1;p=thirdparty%2FPython%2Fcpython.git Initialize utime with 0. It fixes a couple of compiler warnung: warning: 'utime.mtime_ns' may be used uninitialized in this function [-Wmaybe-uninitialized] --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 5f5c85e8d9e3..1ca12f3c70e5 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -4751,6 +4751,7 @@ posix_utime(PyObject *self, PyObject *args, PyObject *kwargs) PyObject *return_value = NULL; memset(&path, 0, sizeof(path)); + memset(&utime, 0, sizeof(utime_t)); #if UTIME_HAVE_FD path.allow_fd = 1; #endif