[grisbi-devel] [PATCH 3/8] Fixes bug 1565: crash when calculating the variance of a split transaction

pbiava pierre.biava at nerim.net
Sun Feb 17 08:20:36 CET 2013


---
 src/transaction_list.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/transaction_list.c b/src/transaction_list.c
index 6f97827..dfe6ffb 100644
--- a/src/transaction_list.c
+++ b/src/transaction_list.c
@@ -2157,6 +2157,8 @@ gboolean transaction_list_get_variance ( gint transaction_number )
     }
 
     mother_record = white_record -> mother_row;
+    if ( !mother_record )
+        return FALSE;
 
     for (i=0 ; i < mother_record -> number_of_children -1 ; i++)
     {
-- 
1.8.1.3



More information about the devel mailing list