Ensure err is a useful value to prevent using fputs() with a NULL stream.

MFC after:	1 week
This commit is contained in:
jedgar 2002-02-17 20:53:56 +00:00
parent ac1df75e69
commit c83f3ada88

View File

@ -1590,6 +1590,7 @@ setup(argc, argv)
* defer diagnostics until processing is done
*/
if ((err = tmpfile()) == NULL) {
err = stderr;
(void)fputs("Cannot defer diagnostic messages\n",stderr);
return(1);
}