]> granicus.if.org Git - file/commitdiff
fix compilation in weird systems from Scott MacVicar scott at macvicar dot net
authorChristos Zoulas <christos@zoulas.com>
Mon, 12 Jan 2009 20:15:11 +0000 (20:15 +0000)
committerChristos Zoulas <christos@zoulas.com>
Mon, 12 Jan 2009 20:15:11 +0000 (20:15 +0000)
src/magic.c

index ed1a1ff5b66fc8cfec2703a467ffa4c5c9dbfeb5..6f884504927881eec083d1142d3d7ee46c2ce5e9 100644 (file)
@@ -28,7 +28,7 @@
 #include "file.h"
 
 #ifndef        lint
-FILE_RCSID("@(#)$File: magic.c,v 1.56 2008/11/06 21:17:45 rrt Exp $")
+FILE_RCSID("@(#)$File: magic.c,v 1.57 2008/11/22 17:01:28 chl Exp $")
 #endif /* lint */
 
 #include "magic.h"
@@ -230,7 +230,7 @@ close_and_restore(const struct magic_set *ms, const char *name, int fd,
 #elif defined(HAVE_UTIME_H) || defined(HAVE_SYS_UTIME_H)
                struct utimbuf  utbuf;
 
-               (void)memset(utbuf, 0, sizeof(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 */