X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/a23477eb9bd7d1af5f66a171041bf72af932488e..8d21bed88b7694600d69a888ed1253cf5f6f6ae0:/uip/distsbr.c diff --git a/uip/distsbr.c b/uip/distsbr.c index 640b30a5..91eb0a8b 100644 --- a/uip/distsbr.c +++ b/uip/distsbr.c @@ -129,10 +129,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");