[tracker] libtracker-data: Fix uninitialized variable usage
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Fix uninitialized variable usage
- Date: Mon, 15 Feb 2016 17:04:51 +0000 (UTC)
commit 86a2bbeedeaee16c54f5ce454f34c3454c94b5a0
Author: Haithem BEN GHORBAL <haithem benghorbal gmail com>
Date: Mon Feb 8 15:03:21 2016 +0100
libtracker-data: Fix uninitialized variable usage
object_id is not initialized in this branch of code, use the object
URI instead.
src/libtracker-data/tracker-data-update.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 6f48dc9..fcf0cc5 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -3737,12 +3737,9 @@ tracker_data_replay_journal (TrackerBusyCallback busy_callback,
GError *new_error = NULL;
if (object && rdf_type == property) {
- TrackerClass *class = NULL;
+ TrackerClass *class;
- uri = tracker_ontologies_get_uri_by_id (object_id);
- if (uri) {
- class = tracker_ontologies_get_class_by_uri (uri);
- }
+ class = tracker_ontologies_get_class_by_uri (object);
if (class != NULL) {
cache_delete_resource_type (class, NULL, graph_id);
} else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]