]> granicus.if.org Git - file/commitdiff
fix wrong variable use (Jonas Wagner)
authorChristos Zoulas <christos@zoulas.com>
Tue, 13 Sep 2016 13:14:44 +0000 (13:14 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 13 Sep 2016 13:14:44 +0000 (13:14 +0000)
src/apprentice.c

index 1f952f7ebd6c39bb1695e75a8d126ca205345cc3..949bffa024f13684fbf5faeec4141b5d81ccaeff 100644 (file)
@@ -32,7 +32,7 @@
 #include "file.h"
 
 #ifndef        lint
-FILE_RCSID("@(#)$File: apprentice.c,v 1.252 2016/09/11 13:53:02 christos Exp $")
+FILE_RCSID("@(#)$File: apprentice.c,v 1.253 2016/09/13 13:14:44 christos Exp $")
 #endif /* lint */
 
 #include "magic.h"
@@ -3158,7 +3158,7 @@ mkdbname(struct magic_set *ms, const char *fn, int strip)
                return NULL;
 
        /* Compatibility with old code that looked in .mime */
-       if (strstr(p, ".mime") != NULL)
+       if (strstr(fn, ".mime") != NULL)
                ms->flags &= MAGIC_MIME_TYPE;
        return buf;
 }