From: Christos Zoulas Date: Mon, 27 Jun 2016 20:56:25 +0000 (+0000) Subject: Reset rv, like it was done before. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eb0bd5f5f3c0eaa7f661216b7e6219bdef21b080;p=file Reset rv, like it was done before. --- diff --git a/src/ascmagic.c b/src/ascmagic.c index 199ef9c8..85a973e4 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.96 2016/06/16 11:37:55 christos Exp $") +FILE_RCSID("@(#)$File: ascmagic.c,v 1.97 2016/06/27 20:56:25 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; } }