2008-02-24 Tor Lillqvist <tml@novell.com>
* glib/gspawn-win32.c: Guard against
_glib_get_installation_directory() returning NULL. In that
case, just use the name of the helper process executable
without path.
svn path=/trunk/; revision=6576
helper_process = HELPER_PROCESS ".exe";
glib_top = _glib_get_installation_directory ();
- helper_process = g_build_filename (glib_top, "bin", helper_process, NULL);
- g_free (glib_top);
+ if (glib_top != NULL)
+ {
+ helper_process = g_build_filename (glib_top, "bin", helper_process, NULL);
+ g_free (glib_top);
+ }
+ else
+ helper_process = g_strdup (helper_process);
new_argv[0] = helper_process;