Reacted on warnings of PLD Linux build log

This commit is contained in:
2013-09-05 08:18:00 +00:00
parent d8aaf43e3b
commit e861dc2a4b
4 changed files with 14 additions and 12 deletions

View File

@ -727,7 +727,9 @@ bit15= with bit1 to bit3: close depicted log file
fflush(pktlog_fp);
}
if(flag & 8) {
truncate(text, (off_t) 0);
ret= truncate(text, (off_t) 0);
if(ret == -1 && errno != ENOENT)
{ret= 0; goto ex;}
xorriso->stderr_fp= fopen(text, "a");
if(xorriso->stderr_fp == NULL)
{ret= 0; goto ex;}