Fix compiler warning on Win32.

This commit is contained in:
Erik de Castro Lopo 2004-03-14 01:43:27 +00:00
parent 15c62a5854
commit 11ded6e6c7

View File

@ -720,6 +720,8 @@ static int
truncate (const char *filename, int ignored)
{ int fd ;
ignored = 0 ;
if ((fd = open (filename, O_RDWR | O_TRUNC | O_BINARY)) < 0)
return 0 ;