From: Philippe Mathieu-Daudé <f4...@amsat.org> 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é <f4...@amsat.org> Reviewed-by: Markus Armbruster <arm...@redhat.com> Acked-by: Michael S. Tsirkin <m...@redhat.com> Message-Id: <20180705155811.20366-2-f4...@amsat.org> Signed-off-by: Laurent Vivier <laur...@vivier.eu> --- 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