mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Initialize utime with 0. It fixes a couple of compiler warnung:
warning: 'utime.mtime_ns' may be used uninitialized in this function [-Wmaybe-uninitialized]
This commit is contained in:
commit
abe639f115
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue