Now that 'query' is no longer an argument we can reuse it. Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx> --- src/qemu/qemu_qapi.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/qemu/qemu_qapi.c b/src/qemu/qemu_qapi.c index 78b2be749e..ed2a4992ab 100644 --- a/src/qemu/qemu_qapi.c +++ b/src/qemu/qemu_qapi.c @@ -86,16 +86,16 @@ virQEMUQAPISchemaTraverseObject(virJSONValuePtr cur, struct virQEMUQAPISchemaTraverseContext *ctxt) { virJSONValuePtr obj; - const char *querystr = *ctxt->query; - char modifier = *querystr; + const char *query = *ctxt->query; + char modifier = *query; if (!c_isalpha(modifier)) - querystr++; + query++; if (modifier == '+') { - obj = virQEMUQAPISchemaObjectGet("variants", querystr, "case", cur); + obj = virQEMUQAPISchemaObjectGet("variants", query, "case", cur); } else { - obj = virQEMUQAPISchemaObjectGet("members", querystr, "name", cur); + obj = virQEMUQAPISchemaObjectGet("members", query, "name", cur); if (modifier == '*' && !virJSONValueObjectHasKey(obj, "default")) -- 2.20.1 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list