[tracker] libtracker-data: Fix uninitialized variable
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Fix uninitialized variable
- Date: Tue, 26 Oct 2010 09:47:57 +0000 (UTC)
commit 06860a99707e0204c085cf9bf2b8f231a9c16809
Author: Jürg Billeter <j bitron ch>
Date: Tue Oct 26 11:46:50 2010 +0200
libtracker-data: Fix uninitialized variable
src/libtracker-data/tracker-data-manager.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-manager.c b/src/libtracker-data/tracker-data-manager.c
index 4ed7358..0fda936 100644
--- a/src/libtracker-data/tracker-data-manager.c
+++ b/src/libtracker-data/tracker-data-manager.c
@@ -849,12 +849,10 @@ tracker_data_ontology_load_statement (const gchar *ontology_path,
return;
}
+ super_property = tracker_ontologies_get_property_by_uri (object);
if (super_property == NULL) {
- super_property = tracker_ontologies_get_property_by_uri (object);
- if (super_property == NULL) {
- g_critical ("%s: Unknown property %s", ontology_path, object);
- return;
- }
+ g_critical ("%s: Unknown property %s", ontology_path, object);
+ return;
}
tracker_property_add_super_property (property, super_property);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]