tags 554785 patch
thanks

Hi Knut,

I'm not an autoclass expert, but gdb helped to track that down to calling stuff 
via NULL pointer. Attached is a patch which fixes that segfault.

-- 
pub 4096R/0E4BD0AB <people.fccf.net/danchev/key pgp.mit.edu>
diff -Naur autoclass-3.3.4.orig/prog/io-results-bin.c autoclass-3.3.4/prog/io-results-bin.c
--- autoclass-3.3.4.orig/prog/io-results-bin.c	2009-11-28 16:30:04.000000000 +0200
+++ autoclass-3.3.4/prog/io-results-bin.c	2009-11-28 16:30:15.000000000 +0200
@@ -595,7 +595,7 @@
                              ((expand_list[0] != END_OF_INT_LIST) &&
                               (member_int_list( clsf_index+1, expand_list) == TRUE)))) {
       expand_clsf( clsf, want_wts_p, update_wts_p);
-      if(first_clsf->models != clsf->models) {
+      if(first_clsf && clsf && (first_clsf->models != clsf->models)) {
 	first_clsf->models = clsf->models;
       }
  

Reply via email to