diff options
| author | Markus Armbruster | 2018-06-26 10:05:45 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2018-06-29 14:20:56 +0200 |
| commit | 17e9aa3f220df64fc288a175dbd62324e92d850c (patch) | |
| tree | 604262fa209b8f2f5a84eca9747ee3b3e6c75964 /linux-user | |
| parent | Merge remote-tracking branch 'remotes/berrange/tags/qio-next-pull-request' in... (diff) | |
| download | qemu-17e9aa3f220df64fc288a175dbd62324e92d850c.tar.gz qemu-17e9aa3f220df64fc288a175dbd62324e92d850c.tar.xz qemu-17e9aa3f220df64fc288a175dbd62324e92d850c.zip | |
block-qdict: Pacify Coverity after commit f1b34a248e9
Commit f1b34a248e9 replaced less-than-obvious test in
qdict_flatten_qdict() by the obvious one. Sadly, it made something
else non-obvious: the fact that @new_key passed to qdict_put_obj()
can't be null, because that depends on the function's precondition
(target == qdict) == !prefix.
Tweak the function some more to help Coverity and human readers alike.
Fixes: CID 1393620
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'linux-user')
0 files changed, 0 insertions, 0 deletions
