]> diplodocus.org Git - nmh/blobdiff - sbr/addrsbr.c
Fixed file descriptor leak in mhfixmsg when run on multiple input files.
[nmh] / sbr / addrsbr.c
index b752797657b76253772f6edcfaee0c1c86a1d4d9..af8ecd4d00f4c40acb55bc721b5cde072f62db7b 100644 (file)
@@ -293,7 +293,7 @@ ismymbox (struct mailname *np)
      */
     if (am == NULL) {
        mq.m_next = NULL;
-       mq.m_mbox = getusername ();
+       mq.m_mbox = getusername (0);
 
        if ((am = context_find ("local-mailbox"))) {
 
@@ -316,7 +316,7 @@ ismymbox (struct mailname *np)
        }
 
        if ((am = context_find ("alternate-mailboxes")) == NULL)
-           am = getusername();
+           am = getusername(0);
        else {
            mp = mq.m_next ? mq.m_next : &mq;
            oops = false;