From 991f3d8dbedb0c1ceb87207229f606f3d1d17e5d Mon Sep 17 00:00:00 2001 From: John Darrington Date: Wed, 25 Feb 2009 16:52:31 +0900 Subject: [PATCH] Fix crash which occurred under mingw. Thanks to Michel Boaventu for reporting and diagnosing this problem. --- src/ui/gui/psppire-window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, '*'); -- 2.30.2