[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] qom: Reject attempts to add a property that alr
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH] qom: Reject attempts to add a property that already exists |
Date: |
Tue, 24 Jul 2012 16:56:14 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1 |
Il 24/07/2012 16:30, Peter Maydell ha scritto:
> + ObjectProperty *prop;
> +
> + QTAILQ_FOREACH(prop, &obj->properties, node) {
> + if (strcmp(prop->name, name) == 0) {
> + /* This is always a bug in the caller */
> + fprintf(stderr, "attempt to set duplicate property %s on
> object\n",
> + name);
> + assert(0);
abort();
That's all I have to say. :)
Paolo
> + }
> + }
> +
> + prop = g_malloc0(sizeof(*prop));