]> granicus.if.org Git - file/commitdiff
FIx compilation
authorChristos Zoulas <christos@zoulas.com>
Wed, 3 Apr 2019 11:34:01 +0000 (11:34 +0000)
committerChristos Zoulas <christos@zoulas.com>
Wed, 3 Apr 2019 11:34:01 +0000 (11:34 +0000)
src/softmagic.c

index 1cd6635f6d179eb720bbc7b7d5d10e0ba8d8a68f..7a1c818a25c9e0fa2e287945ec32cf19fec3409d 100644 (file)
@@ -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)