Don't increment the loop, now that incrementing is taken care of by the
[asterisk/asterisk.git] / funcs / func_strings.c
index fa43752..cb8a98b 100644 (file)
@@ -427,7 +427,7 @@ static int filter(struct ast_channel *chan, const char *cmd, char *parse, char *
        }
 
        /* Expand ranges */
        }
 
        /* Expand ranges */
-       for (; *(args.allowed) && allowedlen < sizeof(allowed); (args.allowed)++) {
+       for (; *(args.allowed) && allowedlen < sizeof(allowed); ) {
                char c1 = 0, c2 = 0;
                size_t consumed = 0;
 
                char c1 = 0, c2 = 0;
                size_t consumed = 0;