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

MFC after:	1 week
This commit is contained in:
Chris D. Faulhaber 2002-02-17 20:53:56 +00:00
parent 038b641740
commit 96c066cc83

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);
}