31 lines
1.3 KiB
Diff
31 lines
1.3 KiB
Diff
|
TransLog.c: In function 'xaccTransWriteLog':
|
||
|
TransLog.c:254: warning: the address of 'dnow' will always evaluate as 'true'
|
||
|
TransLog.c:254: warning: the address of 'dent' will always evaluate as 'true'
|
||
|
TransLog.c:254: warning: the address of 'dpost' will always evaluate as 'true'
|
||
|
TransLog.c:254: warning: the address of 'drecn' will always evaluate as 'true'
|
||
|
================================================================================
|
||
|
--- src/engine/TransLog.c
|
||
|
+++ src/engine/TransLog.c
|
||
|
@@ -256,9 +256,9 @@
|
||
|
"%s\t%s\t%s\t%s\t%c\t%" G_GINT64_FORMAT "/%" G_GINT64_FORMAT "\t%" G_GINT64_FORMAT "/%" G_GINT64_FORMAT "\t%s\n",
|
||
|
flag,
|
||
|
trans_guid_str, split_guid_str, /* trans+split make up unique id */
|
||
|
- dnow ? dnow : "",
|
||
|
- dent ? dent : "",
|
||
|
- dpost ? dpost : "",
|
||
|
+ dnow[0] ? dnow : "",
|
||
|
+ dent[0] ? dent : "",
|
||
|
+ dpost[0] ? dpost : "",
|
||
|
acc_guid_str,
|
||
|
accname ? accname : "",
|
||
|
trans->num ? trans->num : "",
|
||
|
@@ -271,7 +271,7 @@
|
||
|
gnc_numeric_denom(amt),
|
||
|
gnc_numeric_num(val),
|
||
|
gnc_numeric_denom(val),
|
||
|
- drecn ? drecn : "");
|
||
|
+ drecn[0] ? drecn : "");
|
||
|
}
|
||
|
|
||
|
fprintf (trans_log, "===== END\n");
|