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

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 UTC