diff --git a/ChangeLog b/ChangeLog index bf2287fe08..b46f3607f0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-06-10 Matthias Clasen + + * gdk/x11/gdkspawn-x11.c (set_environment): Handle child_setup + being NULL. (#445691, Christopher Taylor) + 2007-06-10 Emmanuele Bassi * gtk/gtksearchenginesimple.c: Unconditionally define _GNU_SOURCE diff --git a/gdk/x11/gdkspawn-x11.c b/gdk/x11/gdkspawn-x11.c index 028351e366..ca40b285f8 100644 --- a/gdk/x11/gdkspawn-x11.c +++ b/gdk/x11/gdkspawn-x11.c @@ -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); } /**