[tracker/wip/carlosg/coverity-fixes: 14/16] docs: Initialize variable
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/coverity-fixes: 14/16] docs: Initialize variable
- Date: Sat, 23 Oct 2021 18:42:01 +0000 (UTC)
commit 3f50c15a62b12e3309238443bfbcc4f613e33c7a
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Oct 23 15:03:14 2021 +0200
docs: Initialize variable
There's some error paths that lead to "goto error" and the enumerator
being freed, despite it being unassigned.
CID: #1506768
docs/tools/tracker-ontology-model.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/docs/tools/tracker-ontology-model.c b/docs/tools/tracker-ontology-model.c
index c584e47ac..e2c40d8d4 100644
--- a/docs/tools/tracker-ontology-model.c
+++ b/docs/tools/tracker-ontology-model.c
@@ -303,7 +303,7 @@ tracker_ontology_model_new (GFile *ontology_location,
{
TrackerOntologyModel *model;
TrackerSparqlConnection *ontology_conn, *desc_conn;
- GFileEnumerator *enumerator;
+ GFileEnumerator *enumerator = NULL;
GFileInfo *info;
GFile *dsc_ontology;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]