qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v2] qobject: json-streamer: Change bracket_count to brace_count


From: Simran Singhal
Subject: [PATCH v2] qobject: json-streamer: Change bracket_count to brace_count
Date: Thu, 2 Apr 2020 22:49:40 +0530
User-agent: Mutt/1.9.4 (2018-02-28)

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

Signed-off-by: Simran Singhal <address@hidden>
---
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(-)

diff --git a/qobject/json-streamer.c b/qobject/json-streamer.c
index 47dd7ea576..b93d97b995 100644
--- a/qobject/json-streamer.c
+++ b/qobject/json-streamer.c
@@ -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;
     }
 
-- 
2.17.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]