+2007-01-29 15:35 Christos Zoulas <christos@zoulas.com>
+
+ * zero out utime/utimes structs (Gavin Atkinson)
+
2007-01-26 13:45 Christos Zoulas <christos@zoulas.com>
* reduce writable data from Diego "Flameeyes" Petten
#include "patchlevel.h"
#ifndef lint
-FILE_RCSID("@(#)$File: magic.c,v 1.45 2007/12/27 16:35:59 christos Exp $")
+FILE_RCSID("@(#)$File: magic.c,v 1.46 2008/01/30 20:36:13 christos Exp $")
#endif /* lint */
#ifdef __EMX__
*/
#ifdef HAVE_UTIMES
struct timeval utsbuf[2];
+ (void)memset(utsbuf, 0, sizeof(utsbuf));
utsbuf[0].tv_sec = sb->st_atime;
utsbuf[1].tv_sec = sb->st_mtime;
#elif defined(HAVE_UTIME_H) || defined(HAVE_SYS_UTIME_H)
struct utimbuf utbuf;
+ (void)memset(utbuf, 0, sizeof(utbuf));
utbuf.actime = sb->st_atime;
utbuf.modtime = sb->st_mtime;
(void) utime(name, &utbuf); /* don't care if loses */