POV-Ray : Newsgroups : povray.binaries.programming : Mac Superpatch Adaption Kit : Re: Mac Superpatch Adaption Kit Server Time
20 Apr 2024 09:52:56 EDT (-0400)
  Re: Mac Superpatch Adaption Kit  
From: Chris Huff
Date: 24 Nov 1999 11:31:18
Message: <241119991134272302%chrishuff_99@yahoo.com>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.