Commit 613c4623 authored by Mike Hibler's avatar Mike Hibler

Don't use implied $_ (@_) variable.

It can interfere with our caller if they are also using it!
parent 0f22833d
......@@ -608,8 +608,8 @@ sub TBPxelinuxConfig($;$)
# already exists, see if it is set correctly
if (-e "$nfile" && open(FD, "<$nfile")) {
while (<FD>) {
if (/^ONTIMEOUT\s+(\S+)/) {
while (my $line = <FD>) {
if ($line =~ /^ONTIMEOUT\s+(\S+)/) {
if ($1 eq $action) {
close(FD);
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment