From: Christos Zoulas Date: Wed, 3 Apr 2019 11:34:01 +0000 (+0000) Subject: FIx compilation X-Git-Tag: FILE5_37~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=666dbfa0e2a9e93fc3e60c0bc8ae4c479578989d;p=file FIx compilation --- diff --git a/src/softmagic.c b/src/softmagic.c index 1cd6635f..7a1c818a 100644 --- a/src/softmagic.c +++ b/src/softmagic.c @@ -32,7 +32,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: softmagic.c,v 1.281 2019/03/26 12:46:35 christos Exp $") +FILE_RCSID("@(#)$File: softmagic.c,v 1.282 2019/04/03 11:34:01 christos Exp $") #endif /* lint */ #include "magic.h" @@ -149,8 +149,8 @@ file_fmtcheck(struct magic_set *ms, const char *desc, const char *def, { const char *ptr; - if (strchr(m->desc, '%') == NULL) - return m->desc; + if (strchr(desc, '%') == NULL) + return desc; ptr = fmtcheck(desc, def); if (ptr == def)