From: John Darrington Date: Thu, 11 Dec 2003 07:16:50 +0000 (+0000) Subject: Fixed bug where pspp would crash if no startup files could be found. X-Git-Tag: v0.4.0~480 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c663f9861a1425f0858f3f5849a19bdc46c868b7;p=pspp-builds.git Fixed bug where pspp would crash if no startup files could be found. --- 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;