Commit Diff
- Commit:
a0e32af22b75afa11c6fc5676a20513a16b2036a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
- Message:
- fix undefined behaviour reported by perlcritic "return" statement followed by "sort" at line 140, column 2. Behavior is undefined if called in scalar context. (Severity: 5) the fix is the same as in volker' plage(1).
- Actions:
- Patch | Tree
--- plass +++ plass @@ -137,7 +137,8 @@ sub passfind { no_chdir => 1, follow_fast => 1, }, ($store)); - return sort(@entries); + my @sorted_entries = sort(@entries); + return @sorted_entries; } sub got {