r14916 - gnucash/branches/sx-cleanup/src/engine - Be defensive.

Joshua Sled jsled at cvs.gnucash.org
Sun Oct 1 17:14:29 EDT 2006


Author: jsled
Date: 2006-10-01 17:14:28 -0400 (Sun, 01 Oct 2006)
New Revision: 14916
Trac: http://svn.gnucash.org/trac/changeset/14916

Modified:
   gnucash/branches/sx-cleanup/src/engine/SchedXaction.c
Log:
Be defensive.

Modified: gnucash/branches/sx-cleanup/src/engine/SchedXaction.c
===================================================================
--- gnucash/branches/sx-cleanup/src/engine/SchedXaction.c	2006-10-01 20:18:58 UTC (rev 14915)
+++ gnucash/branches/sx-cleanup/src/engine/SchedXaction.c	2006-10-01 21:14:28 UTC (rev 14916)
@@ -375,8 +375,10 @@
                                gboolean *outAutoCreate,
                                gboolean *outNotify )
 {
-  *outAutoCreate = sx->autoCreateOption;
-  *outNotify     = sx->autoCreateNotify;
+  if (outAutoCreate != NULL)
+    *outAutoCreate = sx->autoCreateOption;
+  if (outNotify != NULL)
+    *outNotify     = sx->autoCreateNotify;
   return;
 }
 



More information about the gnucash-changes mailing list