GnomeCard Segfault (patch included)



I got a segmentation fault with gnomecard if I had '0' cards and then I 
chose to sort it. I have tried this very simple patch, and it works (no 
longer segfaults for me) - can somebody try this and commit (it also 
doesn't break anything accordign to my testing) - Thanks
This patch prevents a crash in gnomecard when you choose to sort with no cards

--- sort.c~	Fri Dec 24 13:34:45 1999
+++ sort.c	Fri Dec 24 13:33:16 1999
@@ -152,7 +152,8 @@
     GList *l;
     Card *curr;
     
-    curr = gnomecard_curr_crd->data;
+    /* curr = gnomecard_curr_crd->data; */
+    /* Why are you doing the above??? Its NULL and it gets set in the for loop */
     gnomecard_sort_card_list(sort_col);
     
     for (l = gnomecard_crds; l; l = l->next) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]