[gnome-shell] app: Don't abort if a .desktop file has no Exec= key
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] app: Don't abort if a .desktop file has no Exec= key
- Date: Mon, 19 Sep 2011 18:14:01 +0000 (UTC)
commit 37726a4cb69ab54298a3c95ccf469e1ab87ed4b1
Author: Colin Walters <walters verbum org>
Date: Mon Sep 19 14:07:13 2011 -0400
app: Don't abort if a .desktop file has no Exec= key
Seen in the wild in nautilus-pastebin-configurator.desktop.
src/shell-app.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/shell-app.c b/src/shell-app.c
index 7535a81..c813d91 100644
--- a/src/shell-app.c
+++ b/src/shell-app.c
@@ -1171,6 +1171,9 @@ trim_exec_line (const char *str)
{
const char *start, *end, *pos;
+ if (str == NULL)
+ return NULL;
+
end = strchr (str, ' ');
if (end == NULL)
end = str + strlen (str);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]