Skip to content
Snippets Groups Projects
Commit 64854c03 authored by Marc Hoersken's avatar Marc Hoersken
Browse files

tool_urlglob.c: Added braces to clarify the conditions

parent d8efde07
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment