summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xDocumentation/lint-gitlink.perl4
1 files changed, 3 insertions, 1 deletions
diff --git a/Documentation/lint-gitlink.perl b/Documentation/lint-gitlink.perl
index 476cc30b83..35230875c2 100755
--- a/Documentation/lint-gitlink.perl
+++ b/Documentation/lint-gitlink.perl
@@ -1,5 +1,7 @@
#!/usr/bin/perl
+use strict;
+use warnings;
use File::Find;
use Getopt::Long;
@@ -45,7 +47,7 @@ sub lint {
report($where, $target, "no such source");
next;
}
- $real_section = grab_section($page);
+ my $real_section = grab_section($page);
if ($real_section != $section) {
report($where, $target,
"wrong section (should be $real_section)");