From 84b2f63cea98eeed16ce75fa031fb8d7c2a2b66c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 19 May 2016 08:06:05 +0000 Subject: nntpd: avoid uninitialized warning 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(-) (limited to 'lib') diff --git a/lib/PublicInbox/NNTPD.pm b/lib/PublicInbox/NNTPD.pm index 2c84fb30..fc26c5c0 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; -- cgit v1.2.3-24-ge0c7