From: John Darrington Date: Wed, 25 Feb 2009 07:52:31 +0000 (+0900) Subject: Fix crash which occurred under mingw. X-Git-Tag: v0.7.3~272 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=991f3d8dbedb0c1ceb87207229f606f3d1d17e5d;p=pspp-builds.git Fix crash which occurred under mingw. Thanks to Michel Boaventu for reporting and diagnosing this problem. --- diff --git a/src/ui/gui/psppire-window.c b/src/ui/gui/psppire-window.c index 6945914a..db459647 100644 --- a/src/ui/gui/psppire-window.c +++ b/src/ui/gui/psppire-window.c @@ -92,7 +92,8 @@ psppire_window_set_title (PsppireWindow *window) GString *title = g_string_sized_new (80); g_string_printf (title, _("%s %s PSPPIRE %s"), - window->basename, mdash, window->description); + window->basename ? window->basename : "", + mdash, window->description); if ( window->unsaved) g_string_prepend_c (title, '*');