keyval: Use GString to accumulate value strings
commit7ece42110d2cde04f8cbfbceec536340344eab4e
authorMarkus Armbruster <armbru@redhat.com>
Fri, 11 Dec 2020 17:11:50 +0000 (11 18:11 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Sat, 19 Dec 2020 09:39:23 +0000 (19 10:39 +0100)
tree8d0f47dfae1cf3c100e58e34b3cad6c395ddf303
parent68af4cc1213ec6057ac47765985b6704c6be7fd7
keyval: Use GString to accumulate value strings

QString supports modifying its string, but it's quite limited: you can
only append.  The remaining callers use it for building an initial
string, never for modifying it later.

Change keyval_parse_one() to do build the initial string with GString.
This is another step towards making QString immutable.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20201211171152.146877-19-armbru@redhat.com>
util/keyval.c