psh-1.8.1-r3-defined-array.patch 295 B

123456789101112
  1. --- a/lib/Psh.pm 2007-07-21 16:40:44.000000000 +1200
  2. +++ b/lib/Psh.pm 2015-07-18 05:30:29.840928282 +1200
  3. @@ -367,7 +367,7 @@
  4. sub defined_and_nonempty
  5. {
  6. - if (!defined(@_)) { return 0; }
  7. + if (!@_) { return 0; }
  8. if (scalar(@_) == 0) { return 0; }
  9. if (scalar(@_) == 1) {