From: Mansour Moufid Date: Sun, 19 Oct 2014 16:20:36 +0000 (-0400) Subject: The second argument to tor_calloc should be a constant. X-Git-Tag: tor-0.2.6.2-alpha~118^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=533790ca7727d6112ab6d6b80a284fcbe8709712;p=thirdparty%2Ftor.git The second argument to tor_calloc should be a constant. Just like the conventional calloc. --- diff --git a/scripts/coccinelle/calloc.cocci b/scripts/coccinelle/calloc.cocci index f7d7ec0dc3..df0b61de06 100644 --- a/scripts/coccinelle/calloc.cocci +++ b/scripts/coccinelle/calloc.cocci @@ -2,7 +2,8 @@ @malloc_to_calloc@ identifier f =~ "(tor_malloc|tor_malloc_zero)"; -expression a, b; +expression a; +constant b; @@ - f(a * b) + tor_calloc(a, b)