r20574 - gnucash/branches/2.4/src/engine - [20570] Bug #647945: Add sanity check to hopefully fix crash when running custom reports BP
Christian Stimming
cstim at code.gnucash.org
Tue Apr 19 16:22:05 EDT 2011
Author: cstim
Date: 2011-04-19 16:22:05 -0400 (Tue, 19 Apr 2011)
New Revision: 20574
Trac: http://svn.gnucash.org/trac/changeset/20574
Modified:
gnucash/branches/2.4/src/engine/engine-helpers.c
Log:
[20570] Bug #647945: Add sanity check to hopefully fix crash when running custom reports BP
Modified: gnucash/branches/2.4/src/engine/engine-helpers.c
===================================================================
--- gnucash/branches/2.4/src/engine/engine-helpers.c 2011-04-19 20:21:55 UTC (rev 20573)
+++ gnucash/branches/2.4/src/engine/engine-helpers.c 2011-04-19 20:22:05 UTC (rev 20574)
@@ -142,7 +142,8 @@
GncGUID guid;
const gchar * str;
- if (GUID_ENCODING_LENGTH != scm_c_string_length (guid_scm))
+ if (!scm_is_string(guid_scm)
+ || (GUID_ENCODING_LENGTH != scm_c_string_length (guid_scm)))
{
return *guid_null();
}
More information about the gnucash-changes
mailing list