tor/scripts/coccinelle/uncalloc.cocci
2014-09-16 11:11:17 -04:00

14 lines
123 B
Plaintext

@@
expression a;
@@
- tor_calloc(1, a)
+ tor_malloc_zero(a)
@@
expression a;
@@
- tor_calloc(a, 1)
+ tor_malloc_zero(a)