From: John Darrington Date: Mon, 23 Mar 2009 06:42:38 +0000 (+0900) Subject: Initialise description on init. X-Git-Tag: v0.7.3~208 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=299e0bad13a78f0ede0ce6aad5f6b66bbb1deffd;p=pspp-builds.git Initialise description on init. Windows' description parameter must not be NULL. So initialize it to the empty string. --- diff --git a/src/ui/gui/psppire-window.c b/src/ui/gui/psppire-window.c index d5f3948f..54c751d6 100644 --- a/src/ui/gui/psppire-window.c +++ b/src/ui/gui/psppire-window.c @@ -408,6 +408,7 @@ psppire_window_init (PsppireWindow *window) { window->name = NULL; window->menu = NULL; + window->description = strdup (""); window->menuitem_table = g_hash_table_new (g_str_hash, g_str_equal);