procs.c: part_corr()

Jakson A. Aquino jaksonaquino at yahoo.com.br
Wed Aug 31 14:53:07 CEST 2005


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/statist-list/attachments/20050831/6a15aefd/attachment.bin


More information about the Statist-list mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)