[tracker/sparql-update: 8/28] libtracker-data: We can return right after setting error



commit d0635ab2ecb6338e151ab51c4c3b756ddc242cb7
Author: Philip Van Hoof <philip codeminded be>
Date:   Thu Mar 10 17:59:32 2011 +0100

    libtracker-data: We can return right after setting error

 src/libtracker-data/tracker-data-update.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index a6e33f8..b6ad04f 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -2681,6 +2681,7 @@ tracker_data_update_statement_with_uri (const gchar            *graph,
 				             resource_buffer->subject,
 				             tracker_class_get_name (tracker_property_get_domain (property)),
 				             tracker_property_get_name (property));
+				return;
 			}
 		}
 
@@ -2792,6 +2793,7 @@ tracker_data_update_statement_with_string (const gchar            *graph,
 		             resource_buffer->subject,
 		             tracker_class_get_name (tracker_property_get_domain (property)),
 		             tracker_property_get_name (property));
+		return;
 	}
 
 	/* add or update value to metadata database */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]