r16549 - gnucash/trunk/src/engine - Fix gcc-4.2 warning on a string that cannot be NULL.

Christian Stimming cstim at cvs.gnucash.org
Fri Oct 5 15:11:16 EDT 2007


Author: cstim
Date: 2007-10-05 15:11:15 -0400 (Fri, 05 Oct 2007)
New Revision: 16549
Trac: http://svn.gnucash.org/trac/changeset/16549

Modified:
   gnucash/trunk/src/engine/TransLog.c
Log:
Fix gcc-4.2 warning on a string that cannot be NULL.

Pointed out by Andrew Sackville-West.


Modified: gnucash/trunk/src/engine/TransLog.c
===================================================================
--- gnucash/trunk/src/engine/TransLog.c	2007-10-05 15:29:20 UTC (rev 16548)
+++ gnucash/trunk/src/engine/TransLog.c	2007-10-05 19:11:15 UTC (rev 16549)
@@ -273,7 +273,8 @@
                gnc_numeric_denom(amt),
                gnc_numeric_num(val), 
                gnc_numeric_denom(val),
-               drecn ? drecn : "");
+	       /* The next string always exists. No need to test it. */
+               drecn);
    }
 
    fprintf (trans_log, "===== END\n");



More information about the gnucash-changes mailing list