From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 354891F55F for ; Sat, 30 Sep 2023 16:17:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1696090642; bh=Y0aGgpa0zqcpWhRPl+N2vtsD/uLzW7VvtUht7Qq6iY0=; h=From:To:Subject:Date:From; b=PkOJJM6DO9Q9yImlz5lr0LHVatHEdk7zwDyZhDavJuoU80i+us8GYpnYqB+ytJLgq DkqbfpCDR7G7V67NbvOvzkHFtpUOj22XhKpNHCc03dshK11zNvdG9Jx7JObqDsiyjF 9Tz+yBFmz2M54bZ+AO40WbJAmT0wkB7KOrcsFkU8= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] t/lei-convert: fix uninitialized variable w/o pigz Date: Sat, 30 Sep 2023 16:17:21 +0000 Message-ID: <20230930161722.422441-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: `backtick` captures return `undef' when a command is missing Fixes: 5df0446abcca (lei: don't gzip --rsyncable by default for mbox*) --- t/lei-convert.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/lei-convert.t b/t/lei-convert.t index d75110cb..84b57f81 100644 --- a/t/lei-convert.t +++ b/t/lei-convert.t @@ -132,7 +132,7 @@ test_lei({ tmpdir => $tmpdir }, sub { SKIP: { my $ok; for my $x (($ENV{GZIP}//''), qw(pigz gzip)) { - $x && `$x -h 2>&1` =~ /--rsyncable\b/s or next; + $x && (`$x -h 2>&1`//'') =~ /--rsyncable\b/s or next; $ok = $x; last; }