From 54da00b69209252a088b1fbb55008cc2ab4a5805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=C3=B6hler?= Date: Sat, 24 Nov 2007 15:38:19 +0000 Subject: [PATCH] #499360: Patch by Daniel Harding to fix a crash when editing certain commodities. Replace some DEBUGs by LEAVEs as well. BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16598 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/engine/gnc-commodity.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engine/gnc-commodity.c b/src/engine/gnc-commodity.c index 7c3e2fe097..dd8e321e25 100644 --- a/src/engine/gnc-commodity.c +++ b/src/engine/gnc-commodity.c @@ -377,7 +377,7 @@ gnc_quote_source_get_type (gnc_quote_source *source) return SOURCE_SINGLE; } - DEBUG("type is %d",source->type); + LEAVE("type is %d",source->type); return source->type; } @@ -390,7 +390,7 @@ gnc_quote_source_get_index (gnc_quote_source *source) return 0; } - DEBUG("index is %d", source->index); + LEAVE("index is %d", source->index); return source->index; } @@ -403,7 +403,7 @@ gnc_quote_source_get_supported (gnc_quote_source *source) return FALSE; } - DEBUG("%ssupported", source && source->supported ? "" : "not "); + LEAVE("%ssupported", source && source->supported ? "" : "not "); return source->supported; } @@ -969,7 +969,7 @@ gnc_commodity_set_quote_source(gnc_commodity *cm, gnc_quote_source *src) 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;