Re: [xslt] elem uninitialised?



On Sun, Apr 27, 2003 at 04:08:12PM +0200, Igor Zlatkovic wrote:
> Hi there,
> 
> In the file variables.c, on the line 757, a variable 'elem' 
> is declared:
> 
>    xsltStackElemPtr elem;
> 
> The next time this variable is referenced on the line 810, 
> with:
> 
>    xsltFreeStackElem(elem);
> 
> Should this be executed, elem will contain garbage at the 
> point it is passed to xsltFreeStackElem, because it was 
> never initialised. That doesn't look right. Should I fix?

  Yup, thanks !


Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]