diff --git a/status_upd b/status_upd index 858beb96a..951ee9fa1 100755 --- a/status_upd +++ b/status_upd @@ -173,6 +173,7 @@ sub all_common { delete $h->{$_[0]}->{''}; return $h->{$_[0]}; } + return {} unless @_; # init with shortest list, sort hash by least number of keys my @p = sort { h_size($h->{$a}) <=> h_size($h->{$b}) } @_; my $pivot = $p[0];