Thanks to Michel Boaventura for reporting this problem.
Fixes bug #26542
the_output_viewer = NULL;
the_output_viewer = NULL;
- unlink (OUTPUT_FILE_NAME);
+ unlink (output_file_name());
struct stat buf;
/* If there is no output, then don't do anything */
struct stat buf;
/* If there is no output, then don't do anything */
- if (0 != stat (OUTPUT_FILE_NAME, &buf))
+ if (0 != stat (output_file_name(), &buf))
return ;
if ( NULL == the_output_viewer )
return ;
if ( NULL == the_output_viewer )
*/
{
GtkTextIter start_iter;
*/
{
GtkTextIter start_iter;
- FILE *fp = fopen (OUTPUT_FILE_NAME, "r");
+ FILE *fp = fopen (output_file_name(), "r");
- g_print ("Cannot open %s\n", OUTPUT_FILE_NAME);
+ g_critical ("Cannot open %s\n", output_file_name());
- ow->fp = fopen (OUTPUT_FILE_NAME, "r");
+ ow->fp = fopen (output_file_name(), "r");
- g_print ("Cannot open %s\n", OUTPUT_FILE_NAME);
+ g_critical ("Cannot open %s\n", output_file_name());
-const char * output_file_name (void);
void de_initialize (void);
void psppire_quit (void);
void de_initialize (void);
void psppire_quit (void);
+const char * output_file_name (void);
+