From 66d341e54f7b81ff076ffd681ed574d557bd7495 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 28 Feb 2012 09:54:14 +0100 Subject: qdev: accept empty string properties These were stored as NULL due to wrong cut-and-paste from set_pointer. Reported-by: Gerhard Wiesinger Tested-by: Gerhard Wiesinger Signed-off-by: Paolo Bonzini Signed-off-by: Anthony Liguori --- hw/qdev-properties.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'hw/qdev-properties.c') diff --git a/hw/qdev-properties.c b/hw/qdev-properties.c index 0423af1c31..bff9152df5 100644 --- a/hw/qdev-properties.c +++ b/hw/qdev-properties.c @@ -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); } -- cgit v1.2.3