]> granicus.if.org Git - file/commitdiff
Reset rv, like it was done before.
authorChristos Zoulas <christos@zoulas.com>
Mon, 27 Jun 2016 20:56:25 +0000 (20:56 +0000)
committerChristos Zoulas <christos@zoulas.com>
Mon, 27 Jun 2016 20:56:25 +0000 (20:56 +0000)
src/ascmagic.c

index 199ef9c85051ba1f680ae506c63600632f11ed01..85a973e4fe2ea198574a2bad5890c9473890c649 100644 (file)
@@ -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;
                }
        }