Fix crash in Correlations
authorJohn Darrington <john@darrington.wattle.id.au>
Thu, 28 Jul 2011 10:16:14 +0000 (12:16 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Thu, 28 Jul 2011 10:16:14 +0000 (12:16 +0200)
src/math/categoricals.c

index f1bd09023758c0777507ca752b7b8462c23d5ea1..d3aa372867249807618885cf697d66984a8233fc 100644 (file)
@@ -245,6 +245,8 @@ categoricals_destroy (struct categoricals *cat)
 {
   struct variable_node *vn = NULL;
   int i;
+  if (NULL == cat)
+    return;
   for (i = 0; i < cat->n_iap; ++i)
     {
       struct interaction_value *iv = NULL;