mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-09 18:54:04 +02: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:
@@ -1292,6 +1292,10 @@ _g_desktop_app_info_launch_uris_internal (GAppInfo *appinfo,
|
|||||||
TRUE);
|
TRUE);
|
||||||
data.pid_envvar = (char *)g_environ_getenv (envp, "GIO_LAUNCHED_DESKTOP_FILE_PID");
|
data.pid_envvar = (char *)g_environ_getenv (envp, "GIO_LAUNCHED_DESKTOP_FILE_PID");
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
data.pid_envvar = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
display = NULL;
|
display = NULL;
|
||||||
sn_id = NULL;
|
sn_id = NULL;
|
||||||
|
Reference in New Issue
Block a user