]> git.ipfire.org Git - thirdparty/systemd.git/blame - coccinelle/strv_free.cocci
test-execute: Add tests for new PassEnvironment= directive
[thirdparty/systemd.git] / coccinelle / strv_free.cocci
CommitLineData
6796073e
LP
1@@
2expression p;
3@@
4- strv_free(p);
5- p = NULL;
6+ p = strv_free(p);
7@@
8expression p;
9@@
10- if (p)
11- strv_free(p);
12- p = NULL;
13+ p = strv_free(p);
14@@
15expression p;
16@@
17- if (p) {
18- strv_free(p);
19- p = NULL;
20- }
21+ p = strv_free(p);
22@@
23expression p;
24@@
25- if (p)
26- strv_free(p);
27+ strv_free(p);