]> granicus.if.org Git - file/commitdiff
add braces to clarify intent.
authorChristos Zoulas <christos@zoulas.com>
Wed, 19 Oct 2016 20:51:17 +0000 (20:51 +0000)
committerChristos Zoulas <christos@zoulas.com>
Wed, 19 Oct 2016 20:51:17 +0000 (20:51 +0000)
src/funcs.c

index df8dbae67f75f7bfcb1c5a854909fdf4fd3f74dd..c8918a45963a78dd8f20afb6aa665dc44b2d45a4 100644 (file)
@@ -27,7 +27,7 @@
 #include "file.h"
 
 #ifndef        lint
-FILE_RCSID("@(#)$File: funcs.c,v 1.89 2016/03/21 15:56:53 christos Exp $")
+FILE_RCSID("@(#)$File: funcs.c,v 1.90 2016/10/19 20:51:17 christos Exp $")
 #endif /* lint */
 
 #include "magic.h"
@@ -250,7 +250,7 @@ file_buffer(struct magic_set *ms, int fd, const char *inname __attribute__ ((__u
        }
 
        /* try soft magic tests */
-       if ((ms->flags & MAGIC_NO_CHECK_SOFT) == 0)
+       if ((ms->flags & MAGIC_NO_CHECK_SOFT) == 0) {
                m = file_softmagic(ms, ubuf, nb, NULL, NULL, BINTEST,
                    looks_text);
                if ((ms->flags & MAGIC_DEBUG) != 0)
@@ -277,6 +277,7 @@ file_buffer(struct magic_set *ms, int fd, const char *inname __attribute__ ((__u
                        if (checkdone(ms, &rv))
                                goto done;
                }
+       }
 
        /* try text properties */
        if ((ms->flags & MAGIC_NO_CHECK_TEXT) == 0) {