mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
The second argument to tor_calloc should be a constant.
Just like the conventional calloc.
This commit is contained in:
parent
a746081f38
commit
533790ca77
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user