[epiphany] gsb-service: Fix -Wmaybe-uninitialized warning
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] gsb-service: Fix -Wmaybe-uninitialized warning
- Date: Thu, 16 Nov 2017 16:04:47 +0000 (UTC)
commit 2a2b6c7593e7b8b834afa7636d6f216b92711302
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Thu Nov 16 10:02:31 2017 -0600
gsb-service: Fix -Wmaybe-uninitialized warning
This warning seems to be dependent on optimization level or something. I
notice it only on the SDK builder logs. Anyway, the code here frees
uninitialized memory if msg->status_code != 200.
lib/safe-browsing/ephy-gsb-service.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lib/safe-browsing/ephy-gsb-service.c b/lib/safe-browsing/ephy-gsb-service.c
index 4ef2762..73f57a6 100644
--- a/lib/safe-browsing/ephy-gsb-service.c
+++ b/lib/safe-browsing/ephy-gsb-service.c
@@ -167,7 +167,7 @@ static GList *
ephy_gsb_service_fetch_threat_lists_sync (EphyGSBService *self)
{
GList *retval = NULL;
- JsonNode *body_node;
+ JsonNode *body_node = NULL;
JsonObject *body_obj;
JsonArray *threat_lists;
JsonObject *descriptor;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]