for not returning a value from a non-void function (even though the code
never actually reached that point before)
/* processes a set expression with the point behind the opening '{'
','-separated elements are collected until the next closing '}'
*/
+ bool done = FALSE;
char* buf = glob->glob_buffer;
URLPattern *pat;
pat->content.Set.elements = (char**)malloc(0);
++glob->size;
- while (1) {
+ while (!done) {
bool skip;
switch (*pattern) {
wordamount=1;
*amount = pat->content.Set.size * wordamount;
- return GLOB_OK;
+ done = TRUE;
+ continue;
}
buf = glob->glob_buffer;
++pos;
}
}
- /* we never reach this point */
+ return GLOB_OK;
}
static GlobCode glob_range(URLGlob *glob, char *pattern,