cpython (merge 3.3 -> default): Initialize utime with 0. It fixes a couple of compiler warnung:
http://hg.python.org/cpython/rev/967e3cb22baf changeset: 84943:967e3cb22baf parent: 84941:d5cf4f973602 parent: 84942:279c8c8e433d user: Christian Heimes <christian@cheimes.de> date: Thu Aug 01 00:12:06 2013 +0200 summary: Initialize utime with 0. It fixes a couple of compiler warnung: warning: 'utime.mtime_ns' may be used uninitialized in this function [-Wmaybe-uninitialized] files: Modules/posixmodule.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -4494,6 +4494,7 @@ memset(&path, 0, sizeof(path)); path.function_name = "utime"; + memset(&utime, 0, sizeof(utime_t)); #if UTIME_HAVE_FD path.allow_fd = 1; #endif -- Repository URL: http://hg.python.org/cpython
participants (1)
-
christian.heimes