From c663f9861a1425f0858f3f5849a19bdc46c868b7 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Thu, 11 Dec 2003 07:16:50 +0000 Subject: [PATCH] Fixed bug where pspp would crash if no startup files could be found. --- src/ChangeLog | 5 +++++ src/output.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 1b942336..6faf0afb 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +Thu Dec 11 15:13:58 WST 2003 John Darrington + + * output.c: Fixed a bug where pspp would crash if it couldn't find + its startup files. + Thu Dec 11 15:09:04 WST 2003 John Darrington * frequencies.q: Fixed a bug where the program would crash if more that one 'FREQUENCIES' command appeared in a file. diff --git a/src/output.c b/src/output.c index 8cf5bafa..86e8534c 100644 --- a/src/output.c +++ b/src/output.c @@ -287,6 +287,8 @@ outp_read_devices (void) where.line_number = 0; err_push_file_locator (&where); + ds_init (NULL, &line, 128); + if (init_fn == NULL) { msg (IE, _("Cannot find output initialization file. Use `-vv' to view " @@ -302,7 +304,6 @@ outp_read_devices (void) goto exit; } - ds_init (NULL, &line, 128); for (;;) { char *cp; -- 2.30.2