aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2014-12-14 22:50:01 +0100
committerMarc Hoersken <info@marc-hoersken.de>2014-12-14 22:50:01 +0100
commit64854c036451436fea9311313167e37f5580d3a6 (patch)
tree98fd42fbbaa9d4b080e4858bda4761152a2a237a
parentd8efde07e556c42ee35ddc0bcc6daf4d13c948a9 (diff)
tool_urlglob.c: Added braces to clarify the conditions
-rw-r--r--src/tool_urlglob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_urlglob.c b/src/tool_urlglob.c
index 9dace458d..5ea2743cb 100644
--- a/src/tool_urlglob.c
+++ b/src/tool_urlglob.c
@@ -466,7 +466,7 @@ void glob_cleanup(URLGlob* glob)
int elem;
/* the < condition is required since i underflows! */
- for(i = glob->size - 1; i >= 0 && i < glob->size; --i) {
+ for(i = glob->size - 1; (i >= 0) && (i < glob->size); --i) {
if((glob->pattern[i].type == UPTSet) &&
(glob->pattern[i].content.Set.elements)) {
for(elem = glob->pattern[i].content.Set.size - 1;
@@ -500,7 +500,7 @@ int glob_next_url(char **globbed, URLGlob *glob)
/* implement a counter over the index ranges of all patterns,
starting with the rightmost pattern */
/* the < condition is required since i underflows! */
- for(i = glob->size - 1; carry && i >= 0 && (i < glob->size); --i) {
+ for(i = glob->size - 1; carry && (i >= 0) && (i < glob->size); --i) {
carry = FALSE;
pat = &glob->pattern[i];
switch (pat->type) {