diff -urN tracker.orig/src/trackerd/tracker-db.c tracker/src/trackerd/tracker-db.c --- tracker.orig/src/trackerd/tracker-db.c 2006-10-05 20:07:13.000000000 +0200 +++ tracker/src/trackerd/tracker-db.c 2006-10-05 20:06:35.000000000 +0200 @@ -595,6 +595,8 @@ def = tracker_db_get_field_def (db_con, meta); + g_return_val_if_fail (def != NULL, FALSE); + res = (def->type == DATA_DATE); tracker_db_free_field_def (def);