mirror of
https://github.com/systemd/systemd.git
synced 2024-11-05 06:52:22 +03: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)
|