diff options
author | Eric Wong <e@yhbt.net> | 2020-03-21 02:03:51 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-03-25 01:48:35 +0000 |
commit | b76f9a8ad97b28dc9329abddadd83252614882ad (patch) | |
tree | 3dc6a775083374cbdf572f521f08f5020fa68719 /lib | |
parent | d111c17ff06c9af7e0690e4b00a0eeb1c505c92a (diff) | |
download | public-inbox-b76f9a8ad97b28dc9329abddadd83252614882ad.tar.gz |
While we don't currently reinitialize the query parser for the lifetime of a PublicInbox::Search object and have no plans to, it's incorrect to be appending to an existing array in case we reininitialize the query parser in the future.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/Search.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm index 9a394404..fabf5301 100644 --- a/lib/PublicInbox/Search.pm +++ b/lib/PublicInbox/Search.pm @@ -313,7 +313,7 @@ sub qp { # we do not actually create AltId objects, # just parse the spec to avoid the extra DB handles for now. if (my $altid = $self->{altid}) { - my $user_pfx = $self->{-user_pfx} ||= []; + my $user_pfx = $self->{-user_pfx} = []; for (@$altid) { # $_ = 'serial:gmane:/path/to/gmane.msgmap.sqlite3' /\Aserial:(\w+):/ or next; |