From: Christian Heimes Date: Wed, 31 Jul 2013 22:12:06 +0000 (+0200) Subject: Initialize utime with 0. It fixes a couple of compiler warnung: X-Git-Tag: v3.4.0a1~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=abe639f1150a770b2435417330c1c2a5a2e239ab;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] --- abe639f1150a770b2435417330c1c2a5a2e239ab diff --cc Modules/posixmodule.c index 1ae04c4f49df,1ca12f3c70e5..820983c7b024 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@@ -4493,7 -4751,7 +4493,8 @@@ posix_utime(PyObject *self, PyObject *a PyObject *return_value = NULL; memset(&path, 0, sizeof(path)); + path.function_name = "utime"; + memset(&utime, 0, sizeof(utime_t)); #if UTIME_HAVE_FD path.allow_fd = 1; #endif