chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util: use quoted word parsing where applicable
[elogind.git]
/
src
/
strv.c
diff --git
a/src/strv.c
b/src/strv.c
index 01464e1e330816bfd0f4fae3af4ae3085b5ac0b6..a66369602bbbc98051fbd675628fcfdc1dea47f9 100644
(file)
--- a/
src/strv.c
+++ b/
src/strv.c
@@
-264,7
+264,7
@@
char **strv_split_quoted(const char *s) {
i = 0;
FOREACH_WORD_QUOTED(w, l, s, state)
i = 0;
FOREACH_WORD_QUOTED(w, l, s, state)
- if (!(r[i++] =
strndup
(w, l))) {
+ if (!(r[i++] =
cunescape_length
(w, l))) {
strv_free(r);
return NULL;
}
strv_free(r);
return NULL;
}