From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58189) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHS8n-0001gv-IZ for qemu-devel@nongnu.org; Tue, 30 Oct 2018 07:24:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHS8l-0002pd-Dd for qemu-devel@nongnu.org; Tue, 30 Oct 2018 07:24:57 -0400 From: Laurent Vivier Date: Tue, 30 Oct 2018 12:23:31 +0100 Message-Id: <20181030112337.17973-15-laurent@vivier.eu> In-Reply-To: <20181030112337.17973-1-laurent@vivier.eu> References: <20181030112337.17973-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [PULL v2 14/20] qobject: Catch another straggler for use of qdict_put_str() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Michael S. Tsirkin" , Cleber Rosa , Jason Wang , qemu-arm@nongnu.org, Igor Mammedov , Paolo Bonzini , Peter Maydell , Aleksandar Markovic , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Thomas Huth , Anthony Perard , Aurelien Jarno , Max Reitz , Fam Zheng , Laurent Vivier , Kevin Wolf , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Stefano Stabellini , qemu-trivial@nongnu.org, qemu-block@nongnu.org, Eduardo Habkost , xen-devel@lists.xenproject.org, Gerd Hoffmann , Riku Voipio , Marcel Apfelbaum , Michael Tokarev , Laurent Vivier , Michael Walle , Markus Armbruster From: Philippe Mathieu-Daudé 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é Reviewed-by: Markus Armbruster Acked-by: Michael S. Tsirkin Message-Id: <20180705155811.20366-2-f4bug@amsat.org> Signed-off-by: Laurent Vivier --- 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 42054cc274..1487cc5dd8 100644 --- a/qobject/block-qdict.c +++ b/qobject/block-qdict.c @@ -577,7 +577,7 @@ static QObject *qdict_crumple_for_keyval_qiv(QDict *src, Error **errp) if (!tmp) { tmp = qdict_clone_shallow(src); } - qdict_put(tmp, ent->key, qstring_from_str(s)); + qdict_put_str(tmp, ent->key, s); g_free(buf); } -- 2.17.2