From f7fdb2d34bc0d799836e6c7e0f724d98a592a25a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 31 Mar 2020 15:49:11 +0100 Subject: [PATCH] quacks-ingredients: -counts: Skip empty outputs Signed-off-by: Ian Jackson --- quacks-ingredients-counts | 1 + 1 file changed, 1 insertion(+) diff --git a/quacks-ingredients-counts b/quacks-ingredients-counts index a96ac16..ae55648 100755 --- a/quacks-ingredients-counts +++ b/quacks-ingredients-counts @@ -60,6 +60,7 @@ sub wrtoplevel () { print "module ${which}_$name(){ ////toplevel\n"; my $cs = $count{$name}; my $total = 0; $total += $_ foreach values %$cs; + return unless $total; my $rowsz = ceil(sqrt($total)); my $nrows = ceil($total / $rowsz); $total_count += $total; -- 2.30.2