From e660c8a864bc88019bc317fe83e927e37f8edf70 Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Tue, 13 Sep 2016 13:14:44 +0000 Subject: [PATCH] fix wrong variable use (Jonas Wagner) --- src/apprentice.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apprentice.c b/src/apprentice.c index 1f952f7e..949bffa0 100644 --- a/src/apprentice.c +++ b/src/apprentice.c @@ -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; } -- 2.40.0