From 0774a97ff29339dbe87cb69c5745196d800d6584 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Thu, 28 Jul 2011 12:16:14 +0200 Subject: [PATCH] Fix crash in Correlations --- src/math/categoricals.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/math/categoricals.c b/src/math/categoricals.c index f1bd0902..d3aa3728 100644 --- a/src/math/categoricals.c +++ b/src/math/categoricals.c @@ -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; -- 2.30.2