]> Git Repo - qemu.git/commitdiff
qobject: Catch another straggler for use of qdict_put_str()
authorPhilippe Mathieu-Daudé <[email protected]>
Thu, 5 Jul 2018 15:58:05 +0000 (12:58 -0300)
committerLaurent Vivier <[email protected]>
Fri, 26 Oct 2018 15:17:32 +0000 (17:17 +0200)
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é <[email protected]>
Reviewed-by: Markus Armbruster <[email protected]>
Acked-by: Michael S. Tsirkin <[email protected]>
Message-Id: <20180705155811[email protected]>
Signed-off-by: Laurent Vivier <[email protected]>
qobject/block-qdict.c

index 42054cc2742f7a5b8add50d5aad0251890e5bb0b..1487cc5dd8b1cfbd50b9f354bcfa19a056484e43 100644 (file)
@@ -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);
     }
 
This page took 0.022458 seconds and 4 git commands to generate.