From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fawyg-0008EN-IN for qemu-devel@nongnu.org; Thu, 05 Jul 2018 01:38:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fawyf-0008Hp-O0 for qemu-devel@nongnu.org; Thu, 05 Jul 2018 01:38:50 -0400 From: Markus Armbruster References: <20180704153919.12432-1-f4bug@amsat.org> <20180704153919.12432-2-f4bug@amsat.org> Date: Thu, 05 Jul 2018 07:38:38 +0200 In-Reply-To: <20180704153919.12432-2-f4bug@amsat.org> ("Philippe =?utf-8?Q?Mathieu-Daud=C3=A9=22's?= message of "Wed, 4 Jul 2018 12:39:12 -0300") Message-ID: <877emadyxt.fsf@dusky.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 1/8] qobject: Catch another straggler for use of qdict_put_str() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= Cc: Laurent Vivier , =?utf-8?Q?Marc-Andr=C3=A9?= Lureau , Kevin Wolf , "open list:Block layer core" , qemu-devel@nongnu.org, Max Reitz Philippe Mathieu-Daud=C3=A9 writes: > Patch created mechanically by rerunning: > > $ spatch --sp-file scripts/coccinelle/qobject.cocci \ > --macro-file scripts/cocci-macro-file.h \ > --dir . --in-place > > Signed-off-by: Philippe Mathieu-Daud=C3=A9 > --- > qobject/block-qdict.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/qobject/block-qdict.c b/qobject/block-qdict.c > index 80c653013f..ae363708ab 100644 > --- a/qobject/block-qdict.c > +++ b/qobject/block-qdict.c > @@ -572,7 +572,7 @@ static QObject *qdict_crumple_for_keyval_qiv(QDict *s= rc, Error **errp) > if (!tmp) { > tmp =3D qdict_clone_shallow(src); > } > - qdict_put(tmp, ent->key, qstring_from_str(s)); > + qdict_put_str(tmp, ent->key, s); > g_free(buf); > } Reviewed-by: Markus Armbruster