mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-25 05:26:14 +01:00
gdesktopappinfo: Avoid crash by NULL-ing data.pid_envvar before launch
https://bugzilla.gnome.org/show_bug.cgi?id=667279
This commit is contained in:
parent
8b96fb3761
commit
31c3082e19
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user