projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
669fc4e
)
portablectl: coccinelle says we should use TAKE_PTR() here, do so
author
Lennart Poettering
<lennart@poettering.net>
Thu, 31 May 2018 10:05:20 +0000
(12:05 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 31 May 2018 10:05:20 +0000
(12:05 +0200)
src/portable/portablectl.c
patch
|
blob
|
history
diff --git
a/src/portable/portablectl.c
b/src/portable/portablectl.c
index
200435c
..
2105715
100644
(file)
--- a/
src/portable/portablectl.c
+++ b/
src/portable/portablectl.c
@@
-104,8
+104,7
@@
static int extract_prefix(const char *path, char **ret) {
if (!filename_is_valid(name))
return -EINVAL;
- *ret = name;
- name = NULL;
+ *ret = TAKE_PTR(name);
return 0;
}