Permalink
Browse files

Fix some undefined behavior in filter.c, caught by clang scan-build

  • Loading branch information...
1 parent 374089a commit c068c0307a85727dd3ad619122a640f96399d627 @JasonGross JasonGross committed Jan 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 filter.c
View
2 filter.c
@@ -123,8 +123,8 @@ owl_filterelement * owl_filter_parse_expression(int argc, const char *const *arg
owl_filterelement * op1 = NULL, * op2 = NULL, *tmp;
op1 = owl_filter_parse_primitive_expression(argc-i, argv+i, &skip);
- i += skip;
if(!op1) goto err;
+ i += skip;
while(i < argc) {
if(strcasecmp(argv[i], "and") &&

0 comments on commit c068c03

Please sign in to comment.