]> 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 d8c9cce2a19b6ddc5888ad77b56cc1a9478dccf0..0321f40bdbe59ff74b1c974b4db4c6254aa2dee3 100644 (file)
@@ -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;
                }
        }