mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-10 16:31:18 +01:00
Ensure err is a useful value to prevent using fputs() with a NULL stream.
MFC after: 1 week
This commit is contained in:
parent
038b641740
commit
96c066cc83
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90788
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user