[tracker] Compilation warning fixes
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] Compilation warning fixes
- Date: Fri, 28 Aug 2009 09:23:59 +0000 (UTC)
commit 7b34d2f0be5e82c45e8653a40f482c5d3fa4ad2a
Author: Philip Van Hoof <philip codeminded be>
Date: Fri Aug 28 11:23:14 2009 +0200
Compilation warning fixes
src/libtracker-db/tracker-db-interface.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-db/tracker-db-interface.c b/src/libtracker-db/tracker-db-interface.c
index 9f63df7..7f259c6 100644
--- a/src/libtracker-db/tracker-db-interface.c
+++ b/src/libtracker-db/tracker-db-interface.c
@@ -507,7 +507,7 @@ tracker_db_cursor_get_value (TrackerDBCursor *cursor, guint column, GValue *val
const gchar*
tracker_db_cursor_get_string (TrackerDBCursor *cursor, guint column)
{
- g_return_if_fail (TRACKER_IS_DB_CURSOR (cursor));
+ g_return_val_if_fail (TRACKER_IS_DB_CURSOR (cursor), NULL);
return TRACKER_DB_CURSOR_GET_IFACE (cursor)->get_string (cursor, column);
}
@@ -515,7 +515,7 @@ tracker_db_cursor_get_string (TrackerDBCursor *cursor, guint column)
gint
tracker_db_cursor_get_int (TrackerDBCursor *cursor, guint column)
{
- g_return_if_fail (TRACKER_IS_DB_CURSOR (cursor));
+ g_return_val_if_fail (TRACKER_IS_DB_CURSOR (cursor), -1);
return TRACKER_DB_CURSOR_GET_IFACE (cursor)->get_int (cursor, column);
}
@@ -523,7 +523,7 @@ tracker_db_cursor_get_int (TrackerDBCursor *cursor, guint column)
gdouble
tracker_db_cursor_get_double (TrackerDBCursor *cursor, guint column)
{
- g_return_if_fail (TRACKER_IS_DB_CURSOR (cursor));
+ g_return_val_if_fail (TRACKER_IS_DB_CURSOR (cursor), -1);
return TRACKER_DB_CURSOR_GET_IFACE (cursor)->get_double (cursor, column);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]