From: Christos Zoulas Date: Mon, 27 Jun 2016 20:56:25 +0000 (+0000) Subject: Reset rv, like it was done before. X-Git-Tag: FILE5_29~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=15bbd8ca875e2d8165d80c3e994cf59548f56a6f;p=file Reset rv, like it was done before. --- 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; } }