Fix crash which occurred under mingw.
authorJohn Darrington <john@darrington.wattle.id.au>
Wed, 25 Feb 2009 07:52:31 +0000 (16:52 +0900)
committerJohn Darrington <john@darrington.wattle.id.au>
Wed, 25 Feb 2009 07:52:31 +0000 (16:52 +0900)
Thanks to Michel Boaventu for reporting and diagnosing this problem.

src/ui/gui/psppire-window.c

index 6945914a5e294aec189f3ff521b923c1483b3826..db459647a9b9600c9567c0cab70e4952752757df 100644 (file)
@@ -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, '*');