From: Christos Zoulas Date: Mon, 12 Jan 2009 20:15:11 +0000 (+0000) Subject: fix compilation in weird systems from Scott MacVicar scott at macvicar dot net X-Git-Tag: FILE5_05~253 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f4c482bcef998ad308573a47d8e970e3b5975b7a;p=file fix compilation in weird systems from Scott MacVicar scott at macvicar dot net --- diff --git a/src/magic.c b/src/magic.c index aad236d4..daaa75a5 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.57 2008/11/22 17:01:28 chl Exp $") +FILE_RCSID("@(#)$File: magic.c,v 1.58 2009/01/12 20:15:11 christos 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 */