Subject: procs.c: part_corr()

From: "Jakson A. Aquino" <[email-masked]>
Date: Wed, 31 Aug 2005 09:53:07 -0300

Hello!

While running partial correlation with 5 variables,
valgrind reported the following errors:

==2558== Use of uninitialised value of size 8
==2558==    at 0x804E9FA: part_corr (procs.c:90)
==2558==    by 0x804BDCA: regress_menu (menue.c:499)
==2558==    by 0x804A380: main_menue (menue.c:104)
==2558==    by 0x804965C: main (statist.c:232)
==2558== 
==2558== Use of uninitialised value of size 8
==2558==    at 0x804EAAF: part_corr (procs.c:91)
==2558==    by 0x804BDCA: regress_menu (menue.c:499)
==2558==    by 0x804A380: main_menue (menue.c:104)
==2558==    by 0x804965C: main (statist.c:232)
==2558== 
==2558== Use of uninitialised value of size 8
==2558==    at 0x804EF22: part_corr (procs.c:97)
==2558==    by 0x804BDCA: regress_menu (menue.c:499)
==2558==    by 0x804A380: main_menue (menue.c:104)
==2558==    by 0x804965C: main (statist.c:232)

To fix the bug, I replaced (procs.c, line 71):

  if (ncol == 4) {

with:    

  if (ncol >= 4) {

Best,

Jakson