From 6ffa9d55091d326ff2825856a2ef75b86fa26d41 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Mon, 12 Jan 2009 20:15:11 +0000 Subject: [PATCH] fix compilation in weird systems from Scott MacVicar scott at macvicar dot net --- src/magic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/magic.c b/src/magic.c index ed1a1ff5..6f884504 100644 --- a/src/magic.c +++ b/src/magic.c @@ -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 */ -- 2.40.0