From: Philippe Mathieu-Daudé Date: Thu, 5 Jul 2018 15:58:05 +0000 (-0300) Subject: qobject: Catch another straggler for use of qdict_put_str() X-Git-Tag: v3.1.0-rc0~23^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7396972021f0d1386f8cb14cacd64b1fe1237fd7;p=thirdparty%2Fqemu.git qobject: Catch another straggler for use of qdict_put_str() 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 --- diff --git a/qobject/block-qdict.c b/qobject/block-qdict.c index 42054cc2742..1487cc5dd8b 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); }