repo.or.cz
/
systemd_ALT.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
1:255.13-alt1
[systemd_ALT.git]
/
coccinelle
/
malloc_multiply.cocci
blob
320d257bd9b12ba179e4316f0eaa28132b2bff1c
1
/* SPDX-License-Identifier: LGPL-2.1-or-later */
2
@@
3
expression q, n, m;
4
@@
5
- q = malloc((n)*(m))
6
+ q = malloc_multiply(n, m)
7
@@
8
expression q, n, m;
9
@@
10
- q = malloc(n*(m))
11
+ q = malloc_multiply(n, m)
12
@@
13
expression q, n, m;
14
@@
15
- q = malloc((n)*m)
16
+ q = malloc_multiply(n, m)
17
@@
18
expression q, n, m;
19
@@
20
- q = malloc(n*m)
21
+ q = malloc_multiply(n, m)