|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH 1/8] qapi: fix NULL pointer dereference |
Date: | Fri, 16 Dec 2011 15:00:44 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110930 Thunderbird/7.0.1 |
On 12/16/2011 02:55 PM, Anthony Liguori wrote:
This is visible with qom-get path=/i440fx/piix3 property=romfile after static non-string properties are introduced.I'm a bit confused about what's happening here. What's the significance of non-string properties?
Should have been "static non-legacy properties".When you don't have a value for a property, legacy properties are visited as "<null>", while the new static properties do not pass anything to the visitor.
I stole this from qdev_property_get_str: value = prop->get(dev, errp); if (value) { visit_type_str(v, &value, name, errp); g_free(value); } Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |