qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

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é <f4bug@amsat.org>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20180705155811.20366-2-f4bug@amsat.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>

authored by

Philippe Mathieu-Daudé and committed by
Laurent Vivier
73969720 6a1f42bd

+1 -1
+1 -1
qobject/block-qdict.c
··· 577 577 if (!tmp) { 578 578 tmp = qdict_clone_shallow(src); 579 579 } 580 - qdict_put(tmp, ent->key, qstring_from_str(s)); 580 + qdict_put_str(tmp, ent->key, s); 581 581 g_free(buf); 582 582 } 583 583