diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-11-10 23:44:34 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-11-10 23:45:12 +0100 |
commit | f88e6be5ee31ff0e45fabcdedaf26d3be0d4817a (patch) | |
tree | 6eaee98e65ef337eddc31ea60a47ae444c8e2a1d /src/locale | |
parent | 27e9c5af817147ea1c678769e45e83f2e4b4ae96 (diff) |
strv: rework strv_split_quoted() to use unquote_first_word()
This should make the unquoting scheme a bit less naive.
Diffstat (limited to 'src/locale')
-rw-r--r-- | src/locale/localed.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/locale/localed.c b/src/locale/localed.c index 552ffdf87a..9377ce5015 100644 --- a/src/locale/localed.c +++ b/src/locale/localed.c @@ -224,7 +224,7 @@ static int x11_read_data(Context *c) { if (in_section && first_word(l, "Option")) { _cleanup_strv_free_ char **a = NULL; - r = strv_split_quoted(&a, l); + r = strv_split_quoted(&a, l, false); if (r < 0) return r; @@ -247,7 +247,7 @@ static int x11_read_data(Context *c) { } else if (!in_section && first_word(l, "Section")) { _cleanup_strv_free_ char **a = NULL; - r = strv_split_quoted(&a, l); + r = strv_split_quoted(&a, l, false); if (r < 0) return -ENOMEM; @@ -533,7 +533,7 @@ static int read_next_mapping(FILE *f, unsigned *n, char ***a) { if (l[0] == 0 || l[0] == '#') continue; - r = strv_split_quoted(&b, l); + r = strv_split_quoted(&b, l, false); if (r < 0) return r; |