From: John Darrington Date: Thu, 28 Jul 2011 10:16:14 +0000 (+0200) Subject: Fix crash in Correlations X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fbuilds%2F20110730030502%2Fpspp;p=pspp Fix crash in Correlations --- diff --git a/src/math/categoricals.c b/src/math/categoricals.c index f1bd090237..d3aa372867 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;