From: John Darrington Date: Wed, 10 Jun 2009 13:50:48 +0000 (+0800) Subject: Fix bug when positive and negative groups are of different lengths X-Git-Tag: sav-api~248^2~114^2~20 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef05e82c1e224ccfc24594ffc41a155a585276d5;p=pspp Fix bug when positive and negative groups are of different lengths --- diff --git a/src/language/stats/roc.c b/src/language/stats/roc.c index 054289f1d6..b384163437 100644 --- a/src/language/stats/roc.c +++ b/src/language/stats/roc.c @@ -474,6 +474,8 @@ do_roc (struct cmd_roc *roc, struct casereader *input, struct dictionary *dict) case_unref (cneg); cneg = casereader_read (n_neg); + if ( ! cneg ) + break; dneg = case_data_idx (cneg, VALUE)->f; }