summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2016-10-19 20:51:17 +0000
committerChristos Zoulas <christos@zoulas.com>2016-10-19 20:51:17 +0000
commitd711a5a3b366c4e105d748350eee8c40e82f366e (patch)
tree19e83368741392e9b5787bcc68b7c65e29c17f13
parent63826f9fd9709ce8619be0ed2e06593cfaf3a091 (diff)
downloadfile-git-d711a5a3b366c4e105d748350eee8c40e82f366e.tar.gz
add braces to clarify intent.
-rw-r--r--src/funcs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/funcs.c b/src/funcs.c
index df8dbae6..c8918a45 100644
--- a/src/funcs.c
+++ b/src/funcs.c
@@ -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) {