oops! bug fix

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@788 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 1998-04-05 21:00:42 +00:00
parent e2169484aa
commit b973b4da2a

View File

@ -37,9 +37,9 @@
* Note that the current support for journalling is at best
* embryonic, at worst, sets the wrong expectations.
*/
int gen_logs = 0;
FILE * trans_log;
FILE * split_log;
int gen_logs = 1;
FILE * trans_log = 0x0;
FILE * split_log = 0x0;
/********************************************************************\
@ -95,7 +95,8 @@ xaccTransWriteLog (Transaction *trans)
Split *split;
int i = 0;
xaccOpenLog ();
if (!gen_logs) return;
if (!trans_log || !split_log) return;
/* use tab-separated fields, to be /rdb compatible */
fprintf (trans_log, "%s %s\n", trans->num, trans->description);