about summary refs log tree commit homepage
path: root/Documentation/mknews.perl
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-07-05 23:27:50 +0000
committerEric Wong <e@yhbt.net>2020-07-06 20:01:15 +0000
commitbf8ea90e0db55666e558893bf00b703ddd211d45 (patch)
tree5c5290da9090a5a354aad1d9d513d5f384e2279d /Documentation/mknews.perl
parent7845a9dd163b67e8a03533aee17a74265dc9e14f (diff)
downloadpublic-inbox-bf8ea90e0db55666e558893bf00b703ddd211d45.tar.gz
We can save stack space and simplify subroutine calls, here.
Diffstat (limited to 'Documentation/mknews.perl')
-rwxr-xr-xDocumentation/mknews.perl4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/mknews.perl b/Documentation/mknews.perl
index 51d54b71..4a5d0e56 100755
--- a/Documentation/mknews.perl
+++ b/Documentation/mknews.perl
@@ -103,9 +103,9 @@ sub mime2txt {
 
 sub mime2html {
         my ($out, $eml, $ctx) = @_;
-        my $smsg = bless {}, 'PublicInbox::Smsg';
+        my $smsg = $ctx->{smsg} = bless {}, 'PublicInbox::Smsg';
         $smsg->populate($eml);
-        print $out PublicInbox::View::eml_entry($ctx, $smsg, $eml, 1) or die;
+        print $out PublicInbox::View::eml_entry($ctx, $eml, 1) or die;
 }
 
 sub html_start {