[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/8] json-parser: fix two coverity defects
From: |
arei.gonglei |
Subject: |
[Qemu-devel] [PATCH 3/8] json-parser: fix two coverity defects |
Date: |
Tue, 27 May 2014 09:40:00 +0800 |
From: Gonglei <address@hidden>
Pointer "token" returned by "parser_context_pop_token(ctxt)" is never used.
Signed-off-by: ChenLiang <address@hidden>
Signed-off-by: Gonglei <address@hidden>
---
qobject/json-parser.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/qobject/json-parser.c b/qobject/json-parser.c
index e46c264..f28904c 100644
--- a/qobject/json-parser.c
+++ b/qobject/json-parser.c
@@ -463,8 +463,7 @@ static QObject *parse_object(JSONParserContext *ctxt,
va_list *ap)
}
token = NULL;
} else {
- token = parser_context_pop_token(ctxt);
- token = NULL;
+ (void)parser_context_pop_token(ctxt);
}
return QOBJECT(dict);
@@ -542,8 +541,7 @@ static QObject *parse_array(JSONParserContext *ctxt,
va_list *ap)
token = NULL;
} else {
- token = parser_context_pop_token(ctxt);
- token = NULL;
+ (void)parser_context_pop_token(ctxt);
}
return QOBJECT(list);
--
1.7.12.4
Re: [Qemu-devel] [PATCH 6/8] smbus: Fix unreachable code in smb_transaction(), Eric Blake, 2014/05/28