From 6098ea2e328c84b591ef61b0bfe4bd4e5fd8fd02 Mon Sep 17 00:00:00 2001 From: Andrew Chilton Date: Tue, 24 Jun 2008 00:36:40 +1200 Subject: [PATCH] Fix returning the correct list when not filtering anything at all. --- bin/cil | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5