projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merged changes from branch interaction-review
[pspp-builds.git]
/
src
/
output
/
journal.c
diff --git
a/src/output/journal.c
b/src/output/journal.c
index ef50285ea4ee1b8ba04624a37447daac433f16bb..67657f6247cc8ec731cf8154c4f45aa48d369003 100644
(file)
--- a/
src/output/journal.c
+++ b/
src/output/journal.c
@@
-22,6
+22,7
@@
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
+#include <data/file-name.h>
#include <libpspp/str.h>
#include "fwriteerror.h"
#include <libpspp/str.h>
#include "fwriteerror.h"
@@
-83,7
+84,10
@@
journal_write (bool prefix, const char *line)
if (journal_file == NULL)
{
if (journal_file_name == NULL)
if (journal_file == NULL)
{
if (journal_file_name == NULL)
- journal_file_name = xstrdup ("pspp.jnl");
+ {
+ const char *output_path = default_output_path ();
+ journal_file_name = xasprintf ("%s%s", output_path, "pspp.jnl");
+ }
journal_file = fopen (journal_file_name, "w");
if (journal_file == NULL)
{
journal_file = fopen (journal_file_name, "w");
if (journal_file == NULL)
{