mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +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)
|