[glib] gdesktopappinfo: Avoid crash by NULL-ing data.pid_envvar before launch
- From: Michael Terry <mterry src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gdesktopappinfo: Avoid crash by NULL-ing data.pid_envvar before launch
- Date: Wed, 4 Jan 2012 19:43:01 +0000 (UTC)
commit 31c3082e19551377049742a7862dab455727844a
Author: Michael Terry <michael terry canonical com>
Date: Wed Jan 4 13:08:56 2012 -0500
gdesktopappinfo: Avoid crash by NULL-ing data.pid_envvar before launch
https://bugzilla.gnome.org/show_bug.cgi?id=667279
gio/gdesktopappinfo.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c
index ee9802b..453ff69 100644
--- a/gio/gdesktopappinfo.c
+++ b/gio/gdesktopappinfo.c
@@ -1292,6 +1292,10 @@ _g_desktop_app_info_launch_uris_internal (GAppInfo *appinfo,
TRUE);
data.pid_envvar = (char *)g_environ_getenv (envp, "GIO_LAUNCHED_DESKTOP_FILE_PID");
}
+ else
+ {
+ data.pid_envvar = NULL;
+ }
display = NULL;
sn_id = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]