Skip to content

Commit

Permalink
qapi: Fix the virtual walk example in visitor.h's big comment
Browse files Browse the repository at this point in the history
Call visit_check_list().  Missed in commit a4a1c70 "qapi: Make
input visitors detect unvisited list tails".

Drop an irrelevant error_propagate() while there.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200424084338.26803-3-armbru@redhat.com>
  • Loading branch information
Markus Armbruster committed Apr 30, 2020
1 parent 3777d36 commit 294c906
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/qapi/visitor.h
Expand Up @@ -215,14 +215,16 @@
* goto outlist;
* }
* outlist:
* if (!err) {
* visit_check_list(v, &err);
* }
* visit_end_list(v, NULL);
* if (!err) {
* visit_check_struct(v, &err);
* }
* outobj:
* visit_end_struct(v, NULL);
* out:
* error_propagate(errp, err);
* visit_free(v);
* </example>
*/
Expand Down

0 comments on commit 294c906

Please sign in to comment.