mirror of
https://github.com/systemd/systemd.git
synced 2024-12-03 23:33:38 +08:00
62d74c78b5
Let's systematically make use of reallocarray() whereever we invoke realloc() with a product of two values.
21 lines
324 B
Plaintext
21 lines
324 B
Plaintext
@@
|
|
expression q, p, n, m;
|
|
@@
|
|
- q = realloc(p, (n)*(m))
|
|
+ q = reallocarray(p, n, m)
|
|
@@
|
|
expression q, p, n, m;
|
|
@@
|
|
- q = realloc(p, n*(m))
|
|
+ q = reallocarray(p, n, m)
|
|
@@
|
|
expression q, p, n, m;
|
|
@@
|
|
- q = realloc(p, (n)*m)
|
|
+ q = reallocarray(p, n, m)
|
|
@@
|
|
expression q, p, n, m;
|
|
@@
|
|
- q = realloc(p, n*m)
|
|
+ q = reallocarray(p, n, m)
|