Re: [xml] libxml2-2.6.30: uninitialized variable

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)
                    copy->quant = XML_REGEXP_QUANT_ONCE;
laptop:~/XML ->

  thanks !


Red Hat Virtualization group
Daniel Veillard      | virtualization library
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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