]> git.mjollnir.org Git - cil.git/commitdiff
Fix returning the correct list when not filtering anything at all.
authorAndrew Chilton <andychilton@gmail.com>
Mon, 23 Jun 2008 12:36:40 +0000 (00:36 +1200)
committerAndrew Chilton <andychilton@gmail.com>
Mon, 23 Jun 2008 12:36:40 +0000 (00:36 +1200)
bin/cil

diff --git a/bin/cil b/bin/cil
index 05bd5c9b179c221639c0ad51c2b610775f31a2b3..c8f9bacc19c171da6b0bc9c0e288d953e79644e5 100755 (executable)
--- 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;