From 15bbd8ca875e2d8165d80c3e994cf59548f56a6f Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Mon, 27 Jun 2016 20:56:25 +0000 Subject: [PATCH] Reset rv, like it was done before. --- src/ascmagic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ascmagic.c b/src/ascmagic.c index d8c9cce2..0321f40b 100644 --- a/src/ascmagic.c +++ b/src/ascmagic.c @@ -35,7 +35,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: ascmagic.c,v 1.95 2016/05/03 16:10:37 christos Exp $") +FILE_RCSID("@(#)$File: ascmagic.c,v 1.96 2016/06/16 11:37:55 christos Exp $") #endif /* lint */ #include "magic.h" @@ -145,7 +145,7 @@ file_ascmagic_with_encoding(struct magic_set *ms, const unsigned char *buf, TEXTTEST, text)) == 0) rv = -1; if ((ms->flags & (MAGIC_APPLE|MAGIC_EXTENSION))) { - rv == -1 ? 0 : 1; + rv = rv == -1 ? 0 : 1; goto done; } } -- 2.49.0