[tracker] libtracker-data: Check tracker_data_delete_statement arguments
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-data: Check tracker_data_delete_statement arguments
- Date: Tue, 4 Aug 2009 08:53:53 +0000 (UTC)
commit 5e5a6157c00112037862d87e1cd0601148078261
Author: Jürg Billeter <j bitron ch>
Date: Tue Aug 4 10:45:07 2009 +0200
libtracker-data: Check tracker_data_delete_statement arguments
src/libtracker-data/tracker-data-update.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index 9869aef..673d864 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -722,6 +722,10 @@ tracker_data_delete_statement (const gchar *subject,
gint subject_id;
GPtrArray *types;
+ g_return_if_fail (subject != NULL);
+ g_return_if_fail (predicate != NULL);
+ g_return_if_fail (object != NULL);
+
tracker_data_begin_transaction ();
subject_id = query_resource_id (subject);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]