Re: [Qemu-devel] [PATCH v2] qemu-config: Accept empty option values

2015-04-15 Thread Eric Blake
On 04/15/2015 05:59 AM, Eduardo Habkost wrote: > Currently it is impossible to set an option in a config file to an empty > string, because the parser matches only lines containing non-empty > strings between double-quotes. > > As sscanf() "[" conversion specifier only matches non-empty strings, a

[Qemu-devel] [PATCH v2] qemu-config: Accept empty option values

2015-04-15 Thread Eduardo Habkost
Currently it is impossible to set an option in a config file to an empty string, because the parser matches only lines containing non-empty strings between double-quotes. As sscanf() "[" conversion specifier only matches non-empty strings, add a special case for empty strings. Signed-off-by: Edua