if the geometry string is empty, make it NULL, so that we don't trigger

2009-03-07  Cosimo Cecchi  <cosimoc@gnome.org>

	* src/nautilus-application.c
	(_unique_message_data_get_geometry_and_uris): if the geometry
	string is empty, make it NULL, so that we don't trigger geometry
	parsing later (#574410).

svn path=/trunk/; revision=15063
This commit is contained in:
Cosimo Cecchi 2009-03-07 13:48:37 +00:00 committed by Cosimo Cecchi
parent cbfbbc69ad
commit 29106dfb40
2 changed files with 14 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2009-03-07 Cosimo Cecchi <cosimoc@gnome.org>
* src/nautilus-application.c
(_unique_message_data_get_geometry_and_uris): if the geometry
string is empty, make it NULL, so that we don't trigger geometry
parsing later (#574410).
2009-03-06 Alexander Larsson <alexl@redhat.com>
Bug 569668 Don't allow changing default app for folders

View file

@ -188,7 +188,13 @@ _unique_message_data_get_geometry_and_uris (UniqueMessageData *message_data,
result = g_uri_list_extract_uris (uris);
g_free (text);
}
/* if the string is empty, make it NULL */
if (*geometry && strlen (*geometry) == 0) {
g_free (*geometry);
*geometry = NULL;
}
return result;
}