aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/coccinelle/calloc.cocci3
1 files changed, 2 insertions, 1 deletions
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)