projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed make distcheck
[pspp-builds.git]
/
src
/
ui
/
terminal
/
msg-ui.c
diff --git
a/src/ui/terminal/msg-ui.c
b/src/ui/terminal/msg-ui.c
index 7d5cf72f84ff89fb689136ad820eb68c96477106..ddd927c58f1b31f4c746e704d0161a4c21ea66b6 100644
(file)
--- a/
src/ui/terminal/msg-ui.c
+++ b/
src/ui/terminal/msg-ui.c
@@
-40,7
+40,7
@@
static const char *error_file;
static void handle_msg (const struct msg *);
static void handle_msg (const struct msg *);
-static FILE *msg_file;
+static FILE *msg_file
;
void
msg_ui_set_error_file (const char *filename)
void
msg_ui_set_error_file (const char *filename)
@@
-72,7
+72,9
@@
void
msg_ui_done (void)
{
msg_done ();
msg_ui_done (void)
{
msg_done ();
- fclose (msg_file);
+
+ if ( msg_file ) /* FIXME: do we really want to close stdout ?? */
+ fclose (msg_file);
}
}