From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-5.1 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RP_MATCHES_RCVD,URIBL_BLOCKED shortcircuit=no autolearn=unavailable autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 43A9B1FCC4 for ; Thu, 19 May 2016 08:25:19 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/2] nntpd: avoid uninitialized warning Date: Thu, 19 May 2016 08:24:57 +0000 Message-Id: <20160519082457.13112-3-e@80x24.org> In-Reply-To: <20160519082457.13112-1-e@80x24.org> References: <20160519082457.13112-1-e@80x24.org> List-Id: Oops, but at least it was mostly harmless, just ugly. Followup-to: 9bfe40e7a4ac 'nntp: use "newsgroup" instead of "name"'' --- lib/PublicInbox/NNTPD.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/NNTPD.pm b/lib/PublicInbox/NNTPD.pm index 2c84fb3..fc26c5c 100644 --- a/lib/PublicInbox/NNTPD.pm +++ b/lib/PublicInbox/NNTPD.pm @@ -51,7 +51,7 @@ sub refresh_groups () { push @list, $ng; } } - @list = sort { $a->{name} cmp $b->{name} } @list; + @list = sort { $a->{newsgroup} cmp $b->{newsgroup} } @list; $self->{grouplist} = \@list; # this will destroy old groups that got deleted %{$self->{groups}} = %$new;