From: John Darrington Date: Thu, 28 Jul 2011 10:16:14 +0000 (+0200) Subject: Fix crash in Correlations X-Git-Tag: v0.7.9~185 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0774a97ff29339dbe87cb69c5745196d800d6584;p=pspp-builds.git Fix crash in Correlations --- 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;