Fix some warnings.
[pspp-builds.git] / src / math / linreg / coefficient.c
index 2154ffe4ae0329610dc4d60bec0736bc33710ece..2cca9f54653327918691ab228966f32ca82d03b8 100644 (file)
@@ -196,7 +196,7 @@ pspp_linreg_get_coeff (const pspp_linreg_cache * c,
     {
       return NULL;
     }
-  if (c->coeff == NULL || c->n_indeps == NULL || v == NULL)
+  if (c->coeff == NULL || c->n_indeps == 0 || v == NULL)
     {
       return NULL;
     }