Kaydet (Commit) b3c87240 authored tarafından Christian Heimes's avatar Christian Heimes

Initialize utime with 0. It fixes a couple of compiler warnung:

    warning: 'utime.mtime_ns' may be used uninitialized in this function [-Wmaybe-uninitialized]
üst 294b93d4
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment