qemu-config: Sections must consist of keys
commitae39c4b2015dd5ee35021d0f4212bb1304106524
authorMax Reitz <mreitz@redhat.com>
Fri, 21 Feb 2014 18:11:39 +0000 (21 19:11 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 21 Feb 2014 21:11:17 +0000 (21 22:11 +0100)
treeec87a0a025d324711d5541cc939f31fbc5ed52dd
parenta33cc31d08eb46ec2a4f214087c99e4bd4c907e9
qemu-config: Sections must consist of keys

In config_parse_qdict_section(), the QList returned by
qdict_array_split() is assumed to only contain QDicts. Currently, this
is true but it may (and will) change in the future. Therefore, check
whether the assumption actually holds.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
util/qemu-config.c