r16645 - gnucash/branches/2.2/src/engine - [r16598] #499360: Patch by Daniel Harding to fix a crash when editing certain commodities.
Andreas Köhler
andi5 at cvs.gnucash.org
Fri Dec 14 16:58:45 EST 2007
Author: andi5
Date: 2007-12-14 16:58:45 -0500 (Fri, 14 Dec 2007)
New Revision: 16645
Trac: http://svn.gnucash.org/trac/changeset/16645
Modified:
gnucash/branches/2.2/src/engine/gnc-commodity.c
Log:
[r16598] #499360: Patch by Daniel Harding to fix a crash when editing certain commodities.
Replace some DEBUGs by LEAVEs as well.
Modified: gnucash/branches/2.2/src/engine/gnc-commodity.c
===================================================================
--- gnucash/branches/2.2/src/engine/gnc-commodity.c 2007-12-14 21:58:33 UTC (rev 16644)
+++ gnucash/branches/2.2/src/engine/gnc-commodity.c 2007-12-14 21:58:45 UTC (rev 16645)
@@ -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