mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
qdev: accept empty string properties
These were stored as NULL due to wrong cut-and-paste from set_pointer. Reported-by: Gerhard Wiesinger <lists@wiesinger.com> Tested-by: Gerhard Wiesinger <lists@wiesinger.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
a348f10884
commit
66d341e54f
1 changed files with 0 additions and 4 deletions
|
@ -421,10 +421,6 @@ static void set_string(Object *obj, Visitor *v, void *opaque,
|
|||
error_propagate(errp, local_err);
|
||||
return;
|
||||
}
|
||||
if (!*str) {
|
||||
g_free(str);
|
||||
str = NULL;
|
||||
}
|
||||
if (*ptr) {
|
||||
g_free(*ptr);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue