|
From: Ilya M. <m_...@us...> - 2003-09-22 08:10:19
|
Update of /cvsroot/perl-xml/XML-LibXML-XPathContext/t
In directory sc8-pr-cvs1:/tmp/cvs-serv24533/t
Modified Files:
00-xpathcontext.t
Log Message:
Fix 'my" variable $doc masks earlier declaration in same scope' warning
Index: 00-xpathcontext.t
===================================================================
RCS file: /cvsroot/perl-xml/XML-LibXML-XPathContext/t/00-xpathcontext.t,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- 00-xpathcontext.t 21 Sep 2003 10:07:08 -0000 1.10
+++ 00-xpathcontext.t 22 Sep 2003 08:08:03 -0000 1.11
@@ -91,7 +91,7 @@
# testcase for segfault found by Steve Hay
my $xc5 = XML::LibXML::XPathContext->new();
$xc5->registerNs('pfx', 'http://www.foo.com');
-my $doc = XML::LibXML->new->parse_string('<foo xmlns="http://www.foo.com" />');
+$doc = XML::LibXML->new->parse_string('<foo xmlns="http://www.foo.com" />');
$xc5->setContextNode($doc);
$xc5->findnodes('/');
$xc5->setContextNode(undef);
|