summaryrefslogtreecommitdiffstats
path: root/qemu-img.c
diff options
context:
space:
mode:
authorEric Blake2017-06-24 20:10:07 +0200
committerMarkus Armbruster2017-07-12 17:51:54 +0200
commit187f47e947d1e0f4547e58b7cc4fad4d5542b185 (patch)
tree36a2ee3e51fd81fd9227b7773ac5f97999a09aba /qemu-img.c
parentMerge remote-tracking branch 'remotes/dgibson/tags/ppc-for-2.10-20170711' int... (diff)
downloadqemu-187f47e947d1e0f4547e58b7cc4fad4d5542b185.tar.gz
qemu-187f47e947d1e0f4547e58b7cc4fad4d5542b185.tar.xz
qemu-187f47e947d1e0f4547e58b7cc4fad4d5542b185.zip
qobject: Catch another straggler for use of qdict_put_str()
Dan's addition of key-secret improvements in commit 29cf9336 was developed prior to the addition of QDict scalar insertion macros, but merged after the general cleanup in commit 46f5ac20. 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: Eric Blake <eblake@redhat.com> Reviewed-by: Alberto Garcia <berto@igalia.com> Message-Id: <20170624181008.25497-2-eblake@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'qemu-img.c')
-rw-r--r--qemu-img.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-img.c b/qemu-img.c
index f7ffb79db6..02900ce1d1 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -355,7 +355,7 @@ static int img_add_key_secrets(void *opaque,
QDict *options = opaque;
if (g_str_has_suffix(name, "key-secret")) {
- qdict_put(options, name, qstring_from_str(value));
+ qdict_put_str(options, name, value);
}
return 0;