W3C home > Mailing lists > Public > www-validator-cvs@w3.org > December 2009

validator/httpd/cgi-bin check,1.757,1.758

From: Ville Skytta via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 14 Dec 2009 22:51:20 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1NKJlA-0006Mc-W3@lionel-hutz.w3.org>
Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv24447/httpd/cgi-bin

Modified Files:
	check 
Log Message:
Fix infinite loop introduced in revision 1.756.

Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.757
retrieving revision 1.758
diff -u -d -r1.757 -r1.758
--- check	14 Dec 2009 22:39:18 -0000	1.757
+++ check	14 Dec 2009 22:51:18 -0000	1.758
@@ -660,6 +660,8 @@
                 $err->{type} = "E";
                 $err->{msg}  = $err_obj->message();
 
+                $err_obj = $err_obj->_prev();
+
                 # The validator will sometimes fail to dereference entities
                 # files; we're filtering the resulting bogus error for
                 # non-standalone documents. @@@TODO: is this still needed?
@@ -672,7 +674,6 @@
 
                 unshift(@xmlwf_error_list, $err);
                 $num_xmlwf_error++;
-                $err_obj = $err_obj->_prev();
             }
         }
         elsif ($@) {
Received on Monday, 14 December 2009 22:51:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:16 GMT