r15111 - gnucash/trunk/src/backend/file - Make the xml file read behavior less random for malformed account input.

Chris Shoemaker chris at cvs.gnucash.org
Mon Nov 13 21:05:30 EST 2006


Author: chris
Date: 2006-11-13 21:05:28 -0500 (Mon, 13 Nov 2006)
New Revision: 15111
Trac: http://svn.gnucash.org/trac/changeset/15111

Modified:
   gnucash/trunk/src/backend/file/gnc-account-xml-v2.c
Log:
Make the xml file read behavior less random for malformed account input.


Modified: gnucash/trunk/src/backend/file/gnc-account-xml-v2.c
===================================================================
--- gnucash/trunk/src/backend/file/gnc-account-xml-v2.c	2006-11-12 11:06:30 UTC (rev 15110)
+++ gnucash/trunk/src/backend/file/gnc-account-xml-v2.c	2006-11-14 02:05:28 UTC (rev 15111)
@@ -194,7 +194,7 @@
 account_type_handler (xmlNodePtr node, gpointer act_pdata)
 {
     struct account_pdata *pdata = act_pdata;
-    int type;
+    GNCAccountType type = ACCT_TYPE_INVALID;
     char *string;
 
     string = (char*) xmlNodeGetContent (node->xmlChildrenNode);



More information about the gnucash-changes mailing list