diff options
| author | Markus Armbruster | 2014-05-07 09:53:52 +0200 |
|---|---|---|
| committer | Luiz Capitulino | 2014-05-15 20:00:46 +0200 |
| commit | 2ddb16a95f7d4edab4022ef4707d926c0c28db8d (patch) | |
| tree | 2338ad65b79959e16328482de841ee9feb7d2615 /scripts/switch-timer-api | |
| parent | hmp: Call visit_end_struct() after visit_start_struct() succeeds (diff) | |
| download | qemu-2ddb16a95f7d4edab4022ef4707d926c0c28db8d.tar.gz qemu-2ddb16a95f7d4edab4022ef4707d926c0c28db8d.tar.xz qemu-2ddb16a95f7d4edab4022ef4707d926c0c28db8d.zip | |
hw: Don't call visit_end_struct() after visit_start_struct() fails
When visit_start_struct() fails, visit_end_struct() must not be
called. rtc_get_date() and balloon_stats_all() call it anyway. As
far as I can tell, they're only used with the string output visitor,
which doesn't care. Fix them anyway.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions
