From: Andrew Chilton Date: Mon, 23 Jun 2008 12:36:40 +0000 (+1200) Subject: Fix returning the correct list when not filtering anything at all. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6098ea2e328c84b591ef61b0bfe4bd4e5fd8fd02;p=cil.git Fix returning the correct list when not filtering anything at all. --- diff --git a/bin/cil b/bin/cil index 05bd5c9..c8f9bac 100755 --- a/bin/cil +++ b/bin/cil @@ -376,7 +376,8 @@ sub check_paths { sub filter_issues { my ($issues, $args) = @_; - return unless %$args; + # don't filter if we haven't been given anything + return $issues unless %$args; # take a copy of the whole lot first (so we don't destroy the input list) my @new_issues = @$issues;