Commit 5f6c3e7f authored by Andrew Walton's avatar Andrew Walton Committed by Andrew Walton

Fix a crasher on broken desktop entry files. Closes bug #567475.

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.


svn path=/trunk/; revision=14835
parent 57022458
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.
2008-12-19 Alexander Larsson <alexl@redhat.com>
* src/nautilus-property-browser.c:
......
......@@ -534,8 +534,7 @@ nautilus_link_get_link_info_given_file_contents (const char *file_contents,
*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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment