]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: Use nonlocal jump instead of 'exit' in die_error
[Gitweb] / gitweb.perl
index 875e98272f8b2126a05f063c778b7dd1bc5a9d172cd47cf316137812562c440d..bebb1a33fb2e5b8fabdec5549e1107c4810037b3c3a2d008cfb173466b6c1046 100755 (executable)
@@ -973,7 +973,8 @@ if ($action !~ m/^(?:opml|project_list|project_index)$/ &&
        die_error(400, "Project needed");
 }
 $actions{$action}->();
-exit;
+DONE_GITWEB:
+1;
 
 ## ======================================================================
 ## action links
@@ -3433,7 +3434,7 @@ EOF
        print "</div>\n";
 
        git_footer_html();
-       exit;
+       goto DONE_GITWEB;
 }
 
 ## ----------------------------------------------------------------------
This page took 0.211087 seconds and 4 git commands to generate.