aboutsummaryrefslogtreecommitdiff
path: root/qapi/string-output-visitor.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2018-08-23 18:39:47 +0200
committerMarkus Armbruster <armbru@redhat.com>2018-08-24 20:26:37 +0200
commit00ea57fadcb899b7e21079dacb47b6fb8af5b2fa (patch)
tree625d0703969b40598d4fbe5c66a2b80f6f3ea143 /qapi/string-output-visitor.c
parenteddc0a7f0ad84edd0f8dd27d4a70a305ccd7bc5f (diff)
downloadqemu-00ea57fadcb899b7e21079dacb47b6fb8af5b2fa.zip
qemu-00ea57fadcb899b7e21079dacb47b6fb8af5b2fa.tar.gz
qemu-00ea57fadcb899b7e21079dacb47b6fb8af5b2fa.tar.bz2
json: Tighten and simplify qstring_from_escaped_str()'s loop
Simplify loop control, and assert that the string ends with the appropriate quote (the lexer ensures it does). Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20180823164025.12553-21-armbru@redhat.com>
Diffstat (limited to 'qapi/string-output-visitor.c')
0 files changed, 0 insertions, 0 deletions