diff options
author | Eric Wong <e@yhbt.net> | 2020-07-05 23:27:50 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-07-06 20:01:15 +0000 |
commit | bf8ea90e0db55666e558893bf00b703ddd211d45 (patch) | |
tree | 5c5290da9090a5a354aad1d9d513d5f384e2279d /Documentation/mknews.perl | |
parent | 7845a9dd163b67e8a03533aee17a74265dc9e14f (diff) | |
download | public-inbox-bf8ea90e0db55666e558893bf00b703ddd211d45.tar.gz |
We can save stack space and simplify subroutine calls, here.
Diffstat (limited to 'Documentation/mknews.perl')
-rwxr-xr-x | Documentation/mknews.perl | 4 |
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 { |