X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Flinreg%2Fcoefficient.c;h=5efde99e73fd22a7bd94d25281255fc1c224b100;hb=fa9e38d0f6ee72724eeeb92526b23898bf582a89;hp=4010b72d308b039bac804d60fe39c7fc30f923fd;hpb=814e5d005b8108f9fe1c78b60afce20eeccccd6c;p=pspp-builds.git diff --git a/src/math/linreg/coefficient.c b/src/math/linreg/coefficient.c index 4010b72d..5efde99e 100644 --- a/src/math/linreg/coefficient.c +++ b/src/math/linreg/coefficient.c @@ -201,6 +201,8 @@ pspp_linreg_get_coeff (const pspp_linreg_cache * c, return NULL; } + result = c->coeff + i; + tmp = pspp_linreg_coeff_get_var (result, 0); while (tmp->index != v->index && i < c->n_coeffs) { result = c->coeff + i;