summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAnthony Liguori2011-10-31 17:02:29 +0100
committerAnthony Liguori2011-10-31 17:02:29 +0100
commit96b3d73f5ad5838690d42666c566a48be9d173dc (patch)
treeff8308c6bb8494acc5f698308fded86cc5cd4e67 /scripts
parentMerge remote-tracking branch 'qemu-kvm-tmp/uq/master' into staging (diff)
parentDrop qemu-objects.h from modules that don't require it (diff)
downloadqemu-96b3d73f5ad5838690d42666c566a48be9d173dc.tar.gz
qemu-96b3d73f5ad5838690d42666c566a48be9d173dc.tar.xz
qemu-96b3d73f5ad5838690d42666c566a48be9d173dc.zip
Merge remote-tracking branch 'qmp/queue/qmp' into staging
Conflicts: ui/spice-core.c
Diffstat (limited to 'scripts')
-rw-r--r--scripts/qapi-commands.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/qapi-commands.py b/scripts/qapi-commands.py
index c947ba4208..f7def16662 100644
--- a/scripts/qapi-commands.py
+++ b/scripts/qapi-commands.py
@@ -62,7 +62,9 @@ def gen_sync_call(name, args, ret_type, indent=0):
name=c_var(name), args=arglist, retval=retval).rstrip()
if ret_type:
ret += "\n" + mcgen(''''
-%(marshal_output_call)s
+if (!error_is_set(errp)) {
+ %(marshal_output_call)s
+}
''',
marshal_output_call=gen_marshal_output_call(name, ret_type)).rstrip()
pop_indent(indent)