Skip to content

Commit

Permalink
avoid precedence warning
Browse files Browse the repository at this point in the history
With Perl 5.20, installing a package with stow gives a warning like
this:

  Possible precedence issue with control flow operator at
  /gar/packages/stow-2.2.0/lib/perl5/site_perl/5.20.0/Stow.pm line 1736.

http://lists.gnu.org/archive/html/bug-stow/2014-06/msg00000.html

Suggested-by: Adam Sampson <ats@offog.org>
  • Loading branch information
aspiers committed Jun 16, 2014
1 parent 20d3759 commit d788ce0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Stow.pm.in
Expand Up @@ -1734,8 +1734,8 @@ sub read_a_link {
}
elsif (-l $path) {
debug(4, " read_a_link($path): real link");
return readlink $path
or error("Could not read link: $path ($!)");
my $target = readlink $path or error("Could not read link: $path ($!)");
return $target;
}
internal_error("read_a_link() passed a non link path: $path\n");
}
Expand Down

0 comments on commit d788ce0

Please sign in to comment.