Handle child_setup being NULL. (#445691, Christopher Taylor)
2007-06-10 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkspawn-x11.c (set_environment): Handle child_setup being NULL. (#445691, Christopher Taylor) svn path=/trunk/; revision=18097
This commit is contained in:
parent
9b43c45d26
commit
9b8d335ade
@ -1,3 +1,8 @@
|
||||
2007-06-10 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/x11/gdkspawn-x11.c (set_environment): Handle child_setup
|
||||
being NULL. (#445691, Christopher Taylor)
|
||||
|
||||
2007-06-10 Emmanuele Bassi <ebassi@gnome.org>
|
||||
|
||||
* gtk/gtksearchenginesimple.c: Unconditionally define _GNU_SOURCE
|
||||
|
@ -37,8 +37,8 @@ typedef struct {
|
||||
|
||||
/*
|
||||
* Set the DISPLAY variable, and then call the user-specified child setup
|
||||
* function. This is required so that applications can use gdk_spawn_* and call
|
||||
* putenv() in their child_setup functions.
|
||||
* function. This is required so that applications can use gdk_spawn_* and
|
||||
* call putenv() in their child_setup functions.
|
||||
*/
|
||||
static void
|
||||
set_environment (gpointer user_data)
|
||||
@ -47,7 +47,8 @@ set_environment (gpointer user_data)
|
||||
|
||||
g_setenv ("DISPLAY", setup->display, TRUE);
|
||||
|
||||
setup->child_setup (setup->user_data);
|
||||
if (setup->child_setup)
|
||||
setup->child_setup (setup->user_data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user