]> granicus.if.org Git - python/commitdiff
Initialize utime with 0. It fixes a couple of compiler warnung:
authorChristian Heimes <christian@cheimes.de>
Wed, 31 Jul 2013 22:12:06 +0000 (00:12 +0200)
committerChristian Heimes <christian@cheimes.de>
Wed, 31 Jul 2013 22:12:06 +0000 (00:12 +0200)
    warning: 'utime.mtime_ns' may be used uninitialized in this function [-Wmaybe-uninitialized]

1  2 
Modules/posixmodule.c

index 1ae04c4f49df89a7cd176aba0f60dafa387c8857,1ca12f3c70e5fb589ae6db9233dabde22c13d1eb..820983c7b0247e36146225b18e54793abfb1b88b
@@@ -4493,7 -4751,7 +4493,8 @@@ posix_utime(PyObject *self, PyObject *a
      PyObject *return_value = NULL;
  
      memset(&path, 0, sizeof(path));
 +    path.function_name = "utime";
+     memset(&utime, 0, sizeof(utime_t));
  #if UTIME_HAVE_FD
      path.allow_fd = 1;
  #endif