Fix BSD and Sun problems after coverity fixes

This commit is contained in:
Ulrich Wilkens
2018-05-31 22:47:27 +02:00
committed by Jon Trulson
parent 15fb8cea03
commit 16fbb15ecc
12 changed files with 31 additions and 16 deletions

View File

@@ -226,7 +226,7 @@ int main(int argc, XeString *argv)
/* Open an error log with whatever name the library wants to use */
SPC_Open_Log(log_path, FALSE);
SPC_Print_Protocol = spc_logF;
if(NULL == (stderr = freopen(log_path, "a", stderr))) {
if(NULL == freopen(log_path, "a", stderr)) {
printf("Unable to reopen '%s' as stderr\n", log_path);
exit(EXIT_FAILURE);
}