From: Eric Leblond Date: Thu, 8 Nov 2012 23:09:06 +0000 (+0100) Subject: coccinelle: add new correct case to error treatment X-Git-Tag: suricata-1.4beta3~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e5caf6838e3e289ab6a8aa44855c502170ca5be;p=thirdparty%2Fsuricata.git coccinelle: add new correct case to error treatment --- diff --git a/qa/coccinelle/malloc-error-check.cocci b/qa/coccinelle/malloc-error-check.cocci index 93bc6c6a01..67769a042a 100644 --- a/qa/coccinelle/malloc-error-check.cocci +++ b/qa/coccinelle/malloc-error-check.cocci @@ -28,6 +28,8 @@ x@p1 = func(...) ( if (unlikely(x == NULL)) S1 | +if (likely(x != NULL)) S1 +| if (x == NULL) S1 | if (x != NULL) S1 else S2