diff options
author | Martin Wehner <martin.wehner@gmail.com> | 2007-07-10 02:28:46 +0000 |
---|---|---|
committer | Martin Wehner <mwehner@src.gnome.org> | 2007-07-10 02:28:46 +0000 |
commit | 9b3b136a2618eee84bfb746fbeb74e9d36133554 (patch) | |
tree | 72604e9cfdb4a1e0774c55d1f55a0d40f931caad /libnautilus-private/nautilus-program-choosing.c | |
parent | aae99fea95c5d42147097121c55585e5d7aaad6e (diff) | |
download | nautilus-9b3b136a2618eee84bfb746fbeb74e9d36133554.tar.gz |
Check command_string for NULL before using it. (#427618) Patch from Tom
2007-07-10 Martin Wehner <martin.wehner@gmail.com>
* libnautilus-private/nautilus-program-choosing.c:
(nautilus_launch_desktop_file):
Check command_string for NULL before using it. (#427618)
Patch from Tom Parker <palfrey@tevp.net>
svn path=/trunk/; revision=12992
Diffstat (limited to 'libnautilus-private/nautilus-program-choosing.c')
-rw-r--r-- | libnautilus-private/nautilus-program-choosing.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-program-choosing.c b/libnautilus-private/nautilus-program-choosing.c index f3ccb4d1e..25f78e281 100644 --- a/libnautilus-private/nautilus-program-choosing.c +++ b/libnautilus-private/nautilus-program-choosing.c @@ -932,7 +932,7 @@ nautilus_launch_desktop_file (GdkScreen *screen, /* check if this app only supports local files */ command_string = gnome_desktop_item_get_string (ditem, GNOME_DESKTOP_ITEM_EXEC); - if ((strstr (command_string, "%F") || strstr (command_string, "%f")) + if (command_string != NULL && (strstr (command_string, "%F") || strstr (command_string, "%f")) && !(strstr (command_string, "%U") || strstr (command_string, "%u")) && parameter_uris != NULL) { |