|
|
I found the source of the problem(Er, that pun was completely
unintentional, I assure you).
There are 2 places Func->pnum needs to be initialized, in f_expr.c. I
also added initializers for parm, needed in 3 places, although this is
only a problem when pnum is uninitialized.
Around line 181(the line numbers will be slightly off, because of
modifications I made):
Func = (FUNCTION *) POV_MALLOC (sizeof(FUNCTION), "function");
Func->parm = NULL;/*Chris Huff to prevent crash on cleanup*/
Around line 225:
Func = (FUNCTION *) POV_MALLOC (sizeof(FUNCTION), "function");
Func->parm = NULL;/*Chris Huff to prevent crash on cleanup*/
Func->pnum = 0;/*Chris Huff to prevent crash on cleanup*/
And around line 468:
Func = (FUNCTION *) POV_MALLOC (sizeof(FUNCTION), "function");
Func->parm = NULL;/*Chris Huff to prevent crash on cleanup*/
Func->pnum = 0;/*Chris Huff to prevent crash on cleanup*/
--
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/
Post a reply to this message
|
|