nautilus r14835 - in trunk: . libnautilus-private
- From: awalton svn gnome org
- To: svn-commits-list gnome org
- Subject: nautilus r14835 - in trunk: . libnautilus-private
- Date: Mon, 12 Jan 2009 11:24:56 +0000 (UTC)
Author: awalton
Date: Mon Jan 12 11:24:56 2009
New Revision: 14835
URL: http://svn.gnome.org/viewvc/nautilus?rev=14835&view=rev
Log:
2009-01-12 A. Walton <awalton gnome org>
* libnautilus-private/nautilus-link.c
(nautilus_link_get_link_info_given_file_contents):
Fix a crasher on broken desktop entry files.
Closes bug #567475.
Modified:
trunk/ChangeLog
trunk/libnautilus-private/nautilus-link.c
Modified: trunk/libnautilus-private/nautilus-link.c
==============================================================================
--- trunk/libnautilus-private/nautilus-link.c (original)
+++ trunk/libnautilus-private/nautilus-link.c Mon Jan 12 11:24:56 2009
@@ -534,8 +534,7 @@
*is_launcher = FALSE;
type = g_key_file_get_string (key_file, MAIN_GROUP, "Type", NULL);
- if (type != NULL &&
- strcmp (type, "Application") == 0 &&
+ if (g_strcmp0 (type, "Application") == 0 &&
g_key_file_has_key (key_file, MAIN_GROUP, "Exec", NULL)) {
*is_launcher = TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]