diff options
author | Michael Catanzaro <mcatanzaro@igalia.com> | 2017-11-16 10:02:31 -0600 |
---|---|---|
committer | Michael Catanzaro <mcatanzaro@igalia.com> | 2017-11-16 10:04:19 -0600 |
commit | 2a2b6c7593e7b8b834afa7636d6f216b92711302 (patch) | |
tree | 5da5ff9431ae9a7094a0a5753d9dcf6af6580116 /lib/safe-browsing/ephy-gsb-service.c | |
parent | a3e8fd0d4164c93558f5e86e8a60ac26e89d0e5a (diff) | |
download | epiphany-2a2b6c7593e7b8b834afa7636d6f216b92711302.tar.gz |
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.
Diffstat (limited to 'lib/safe-browsing/ephy-gsb-service.c')
-rw-r--r-- | 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 4ef2762a9..73f57a619 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; |