FACTOR: prevent crash if the dataset is empty. 20100731040501/pspp
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 31 Jul 2010 09:55:18 +0000 (11:55 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 31 Jul 2010 09:55:18 +0000 (11:55 +0200)
commit2b5831d68df1824881f9117bf2297957a6e49f64
tree69f2ef8391be0915d19b6a1b0d42b08da43b28f7
parentc48de1ac439a57cdead8114f8ccb9b9ba1cee001
FACTOR: prevent crash if the dataset is empty.

The FACTOR command crashed if there were no cases
which had non-missing values for all variables.
This change emits a warning in this case and does
no analysis.
src/language/stats/factor.c
src/math/covariance.c
tests/language/stats/factor.at