From f88e6be5ee31ff0e45fabcdedaf26d3be0d4817a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 10 Nov 2014 23:44:34 +0100 Subject: strv: rework strv_split_quoted() to use unquote_first_word() This should make the unquoting scheme a bit less naive. --- src/locale/localed.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/locale') 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; -- cgit v1.2.3-54-g00ecf