AUDIT: r16598 - gnucash/trunk/src/engine - #499360: Patch by Daniel Harding to fix a crash when editing certain commodities.

Andreas Köhler andi5 at cvs.gnucash.org
Sat Nov 24 10:38:20 EST 2007


Author: andi5
Date: 2007-11-24 10:38:19 -0500 (Sat, 24 Nov 2007)
New Revision: 16598
Trac: http://svn.gnucash.org/trac/changeset/16598

Modified:
   gnucash/trunk/src/engine/gnc-commodity.c
Log:
#499360: Patch by Daniel Harding to fix a crash when editing certain commodities.

Replace some DEBUGs by LEAVEs as well.
BP


Modified: gnucash/trunk/src/engine/gnc-commodity.c
===================================================================
--- gnucash/trunk/src/engine/gnc-commodity.c	2007-11-19 00:16:11 UTC (rev 16597)
+++ gnucash/trunk/src/engine/gnc-commodity.c	2007-11-24 15:38:19 UTC (rev 16598)
@@ -377,7 +377,7 @@
     return SOURCE_SINGLE;
   }
 
-  DEBUG("type is %d",source->type);
+  LEAVE("type is %d",source->type);
   return source->type;
 }
 
@@ -390,7 +390,7 @@
     return 0;
   }
 
-  DEBUG("index is %d", source->index);
+  LEAVE("index is %d", source->index);
   return source->index;
 }
 
@@ -403,7 +403,7 @@
     return FALSE;
   }
 
-  DEBUG("%ssupported", source && source->supported ? "" : "not ");
+  LEAVE("%ssupported", source && source->supported ? "" : "not ");
   return source->supported;
 }
 
@@ -969,7 +969,7 @@
 void
 gnc_commodity_set_quote_tz(gnc_commodity *cm, const char *tz) 
 {
-  ENTER ("(cm=%p, tz=%s)", cm, tz);
+  ENTER ("(cm=%p, tz=%s)", cm, tz ? tz : "(null)");
 
   if(!cm || tz == cm->quote_tz) return;
 



More information about the gnucash-changes mailing list