tracker r2543 - in trunk: . src/libtracker-common
- From: carlosg svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2543 - in trunk: . src/libtracker-common
- Date: Fri, 21 Nov 2008 14:13:57 +0000 (UTC)
Author: carlosg
Date: Fri Nov 21 14:13:57 2008
New Revision: 2543
URL: http://svn.gnome.org/viewvc/tracker?rev=2543&view=rev
Log:
2008-11-21 Carlos Garnacho <carlos imendio com>
* src/libtracker-common/tracker-ontology.c
(tracker_ontology_get_service_by_mime): Return a const gchar* in all
cases.
Modified:
trunk/ChangeLog
trunk/src/libtracker-common/tracker-ontology.c
Modified: trunk/src/libtracker-common/tracker-ontology.c
==============================================================================
--- trunk/src/libtracker-common/tracker-ontology.c (original)
+++ trunk/src/libtracker-common/tracker-ontology.c Fri Nov 21 14:13:57 2008
@@ -274,7 +274,7 @@
ServiceMimePrefixes *item;
GSList *prefix_service;
- g_return_val_if_fail (mime != NULL, g_strdup ("Other"));
+ g_return_val_if_fail (mime != NULL, "Other");
/* Try a complete mime */
id = g_hash_table_lookup (mimes_to_service_ids, mime);
@@ -293,7 +293,7 @@
}
/* Default option */
- return g_strdup ("Other");
+ return "Other";
}
gint
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]