X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/a23477eb9bd7d1af5f66a171041bf72af932488e..e6c91771:/uip/distsbr.c?ds=sidebyside diff --git a/uip/distsbr.c b/uip/distsbr.c index 640b30a5..a4c48723 100644 --- a/uip/distsbr.c +++ b/uip/distsbr.c @@ -8,6 +8,7 @@ #include #include #include +#include "../sbr/m_mktemp.h" static int hdrfd = NOTOK; static int txtfd = NOTOK; @@ -129,10 +130,14 @@ ready_msg (char *msgnam) char *cp = NULL; m_getfld_state_t gstate = 0; - if (hdrfd != NOTOK) - close (hdrfd), hdrfd = NOTOK; - if (txtfd != NOTOK) - close (txtfd), txtfd = NOTOK; + if (hdrfd != NOTOK) { + close (hdrfd); + hdrfd = NOTOK; + } + if (txtfd != NOTOK) { + close (txtfd); + txtfd = NOTOK; + } if ((ifp = fopen (msgnam, "r")) == NULL) adios (msgnam, "unable to open message");