chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Introduce strv_consume which takes ownership
[elogind.git]
/
src
/
shared
/
conf-parser.c
diff --git
a/src/shared/conf-parser.c
b/src/shared/conf-parser.c
index 86435d3bdebd3c87fa42b408a60878c9cce24212..0a87a715136eafb552bd406137b829672a9dd2d6 100644
(file)
--- a/
src/shared/conf-parser.c
+++ b/
src/shared/conf-parser.c
@@
-681,7
+681,7
@@
int config_parse_strv(const char *unit,
}
FOREACH_WORD_QUOTED(w, l, rvalue, state) {
-
_cleanup_free_
char *n;
+ char *n;
n = cunescape_length(w, l);
if (!n)
@@
-693,7
+693,7
@@
int config_parse_strv(const char *unit,
continue;
}
- r = strv_
extend
(sv, n);
+ r = strv_
consume
(sv, n);
if (r < 0)
return log_oom();
}