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



commit c0519807967375c8cf03baa55f1c7f23bc6fa652
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 735d859..272ab0e 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -2642,6 +2642,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;
 			}
 		}
 
@@ -2753,6 +2754,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]