Skip to contentSkip to conversation

qobject: json-streamer: Change bracket_count to brace_count

PATCH Superseded Simran Singhal 2 participants 2 messages Apr 2, 2020

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 qobject: json-streamer: Change bracket_count to brace_count

Change the "parser->bracket_count >= 0" to "parser->brace_count >= 0" to fix the typo.

---
Changes in v2:

        -No need to remove the duplicate occurence of "parser->bracket_count >= 0"
	but actually it is a typo and one occurence should be "parser->brace_count >= 0".
 qobject/json-streamer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
qobject/json-streamer.c +1 -1
index 47dd7ea576..b93d97b995 100644
@@ -85,7 +85,7 @@ void json_message_process_token(JSONLexer *lexer, GString *input,
     g_queue_push_tail(&parser->tokens, token);
 
     if ((parser->brace_count > 0 || parser->bracket_count > 0)
-        && parser->bracket_count >= 0 && parser->bracket_count >= 0) {
+        && parser->brace_count >= 0 && parser->bracket_count >= 0) {
         return;
     }
 
Signature · 1 line
2.17.1
Reviewed-by on v2 1/1
#1 lore raw
Quoted 4 lines · Simran Singhal

Change the "parser->bracket_count >= 0" to "parser->brace_count >= 0" to fix the typo.

Please add:

Fixes 8d3265b3

at which point you can also add:

Quoted 4 lines

---
Changes in v2:

         -No need to remove the duplicate occurence of "parser->bracket_count >= 0"
	but actually it is a typo and one occurence should be "parser->brace_count >= 0".

occurrence (but at least this typo won't make it into git)

Signature · 3 lines
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org