summaryrefslogtreecommitdiffstats
path: root/cocci/null-the-pointer-early.disabled
blob: 46fdffc123056d7ada6f887423eec7571379dffc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
@@
type T;
T **PP;
T *P;
@@

  P = *PP;
+ *PP = NULL;
  ...
- *PP = NULL;

@@
type T;
identifier PP;
identifier P;
@@

  T *P = *PP;
+ *PP = NULL;
  ...
- *PP = NULL;