# HG changeset patch # User Timo Sirainen # Date 1500965036 -10800 # Node ID 74fdc86524ef3a842ec2f9476f2ef471f2badfc4 # Parent 1fc29e34ee3d73ca46a98c5e699114baad74be6d lib: Fix static analyzer warnings in var-expand-if diff -r 1fc29e34ee3d -r 74fdc86524ef src/lib/var-expand-if.c --- a/src/lib/var-expand-if.c Mon Jul 24 18:30:01 2017 +0300 +++ b/src/lib/var-expand-if.c Tue Jul 25 09:43:56 2017 +0300 @@ -133,6 +133,7 @@ return 0; case OP_STR_NOT_REGEXP: neg = TRUE; + /* fall through */ case OP_STR_REGEXP: { int ec; bool res; @@ -157,7 +158,7 @@ if NOT_REGEXP, neg == TRUE and res should be FALSE if REGEXP, ned == FALSE, and res should be TRUE */ - *result_r = !res == neg; + *result_r = res != neg; return 0; } default: