about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/PublicInbox/SearchIdxShard.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/SearchIdxShard.pm b/lib/PublicInbox/SearchIdxShard.pm
index 20077e08..75521b43 100644
--- a/lib/PublicInbox/SearchIdxShard.pm
+++ b/lib/PublicInbox/SearchIdxShard.pm
@@ -97,7 +97,7 @@ sub index_raw {
                         "\n", $$msgref or die "failed to write shard $!\n";
         } else {
                 if ($eml) {
-                        $$msgref = undef;
+                        undef $$msgref;
                 } else { # --xapian-only + --sequential-shard:
                         $eml = PublicInbox::Eml->new($msgref);
                 }