diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-04-06 11:03:12 +0200 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-04-06 11:03:12 +0200 |
| commit | e46ab2a95aabe30fc043531fddbda16118e2888d (patch) | |
| tree | 084b940e0e8159a176e421de340b969a4c1d8c2e /src/daemon/Settings.cpp | |
| parent | 04cc4f8c63a635bcdbce4d887e7c6b3483e6f141 (diff) | |
| parent | 2cc15eb689fa8690f652ea6db34cb2d40d0cc2cc (diff) | |
| download | abrt-e46ab2a95aabe30fc043531fddbda16118e2888d.tar.gz abrt-e46ab2a95aabe30fc043531fddbda16118e2888d.tar.xz abrt-e46ab2a95aabe30fc043531fddbda16118e2888d.zip | |
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'src/daemon/Settings.cpp')
| -rw-r--r-- | src/daemon/Settings.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/daemon/Settings.cpp b/src/daemon/Settings.cpp index e25b7959..b3d1ade5 100644 --- a/src/daemon/Settings.cpp +++ b/src/daemon/Settings.cpp @@ -64,11 +64,14 @@ static GList *parse_list(const char* list) struct strbuf *item = strbuf_new(); GList *l = NULL; + char *trim_item = NULL; + for (unsigned ii = 0; list[ii]; ii++) { if (list[ii] == ',') { - l = g_list_append(l, xstrdup(item->buf)); + trim_item = strtrim(item->buf); + l = g_list_append(l, xstrdup(trim_item)); strbuf_clear(item); } else @@ -76,7 +79,10 @@ static GList *parse_list(const char* list) } if (item->len > 0) - l = g_list_append(l, xstrdup(item->buf)); + { + trim_item = strtrim(item->buf); + l = g_list_append(l, xstrdup(trim_item)); + } strbuf_free(item); return l; |
