From: Dan Harkless Date: Fri, 16 Jul 1999 01:03:34 +0000 (+0000) Subject: donote() previously was written such that it could return garbage. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/8f8d299c72fdf8105947681d459dde45eda94e9d?ds=sidebyside donote() previously was written such that it could return garbage. --- diff --git a/uip/msgchk.c b/uip/msgchk.c index 65fed7e3..a063049a 100644 --- a/uip/msgchk.c +++ b/uip/msgchk.c @@ -283,7 +283,7 @@ main (int argc, char **argv) } /* host == NULL */ #endif - done (status); + return done (status); } @@ -315,6 +315,8 @@ donote (char *cp, int ntflag) case NNMAISW: return NT_NMAI; } + + return 0; /* Before 1999-07-15, garbage was returned if control got here. */ }