Re: [xml] libxml2-2.6.30: uninitialized variable
- From: Daniel Veillard <veillard redhat com>
- To: Joel Wahlberg siriusit com
- Cc: xml gnome org
- Subject: Re: [xml] libxml2-2.6.30: uninitialized variable
- Date: Mon, 19 Nov 2007 12:42:14 -0500
On Mon, Nov 19, 2007 at 08:39:14AM +0100, Joel Wahlberg siriusit com wrote:
\libxml2-2.6.30\xmlregexp.c(1614) : warning C4700: uninitialized local
variable 'copy' used...
Well there was clearly a duplicated line there, but as the comment
indicated that code seems to never run,
laptop:~/XML -> svn diff
Index: xmlregexp.c
===================================================================
--- xmlregexp.c (revision 3664)
+++ xmlregexp.c (working copy)
@@ -1611,7 +1611,6 @@
case, I suppose this got optimized out before when
building the automata */
copy = xmlRegCopyAtom(ctxt, atom);
- copy = xmlRegCopyAtom(ctxt, atom);
if (copy == NULL)
return(-1);
copy->quant = XML_REGEXP_QUANT_ONCE;
laptop:~/XML ->
thanks !
Daniel
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
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]