summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-08-01 00:12:06 +0200
committerChristian Heimes <christian@cheimes.de>2013-08-01 00:12:06 +0200
commit67b4dfe50b64b20514bd5edc327fbeabd86e98b0 (patch)
tree112c6559bea639eca11482f348efab0d78150e2f /Modules
parent053dd390506cbabfa1ee18e17e2315b5dbbed613 (diff)
parent673a5a2ff23a2fe91ef3d3510c5517487d279050 (diff)
downloadcpython-67b4dfe50b64b20514bd5edc327fbeabd86e98b0.tar.gz
Initialize utime with 0. It fixes a couple of compiler warnung:
warning: 'utime.mtime_ns' may be used uninitialized in this function [-Wmaybe-uninitialized]
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 1ae04c4f49..820983c7b0 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -4494,6 +4494,7 @@ posix_utime(PyObject *self, PyObject *args, PyObject *kwargs)
memset(&path, 0, sizeof(path));
path.function_name = "utime";
+ memset(&utime, 0, sizeof(utime_t));
#if UTIME_HAVE_FD
path.allow_fd = 1;
#endif