diff options
author | Christian Heimes <christian@cheimes.de> | 2013-08-01 00:12:06 +0200 |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-08-01 00:12:06 +0200 |
commit | 67b4dfe50b64b20514bd5edc327fbeabd86e98b0 (patch) | |
tree | 112c6559bea639eca11482f348efab0d78150e2f /Modules | |
parent | 053dd390506cbabfa1ee18e17e2315b5dbbed613 (diff) | |
parent | 673a5a2ff23a2fe91ef3d3510c5517487d279050 (diff) | |
download | cpython-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.c | 1 |
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 |