Commit 66d341e5 authored by Paolo Bonzini's avatar Paolo Bonzini Committed by Anthony Liguori
Browse files

qdev: accept empty string properties

These were stored as NULL due to wrong cut-and-paste from set_pointer.
Reported-by: default avatarGerhard Wiesinger <>
Tested-by: default avatarGerhard Wiesinger <>
Signed-off-by: default avatarPaolo Bonzini <>
Signed-off-by: default avatarAnthony Liguori <>
parent a348f108
...@@ -421,10 +421,6 @@ static void set_string(Object *obj, Visitor *v, void *opaque, ...@@ -421,10 +421,6 @@ static void set_string(Object *obj, Visitor *v, void *opaque,
error_propagate(errp, local_err); error_propagate(errp, local_err);
return; return;
} }
if (!*str) {
str = NULL;
if (*ptr) { if (*ptr) {
g_free(*ptr); g_free(*ptr);
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment