cygwin: ftruncate64: add missing braces
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
09d60f6444
commit
ad15b8ccee
@ -2967,12 +2967,14 @@ ftruncate64 (int fd, off_t length)
|
|||||||
int res = -1;
|
int res = -1;
|
||||||
cygheap_fdget cfd (fd);
|
cygheap_fdget cfd (fd);
|
||||||
if (cfd >= 0)
|
if (cfd >= 0)
|
||||||
res = cfd->ftruncate (length, true);
|
{
|
||||||
if (res)
|
res = cfd->ftruncate (length, true);
|
||||||
{
|
if (res)
|
||||||
set_errno (res);
|
{
|
||||||
res = -1;
|
set_errno (res);
|
||||||
}
|
res = -1;
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
set_errno (EBADF);
|
set_errno (EBADF);
|
||||||
syscall_printf ("%R = ftruncate(%d, %D)", res, fd, length);
|
syscall_printf ("%R = ftruncate(%d, %D)", res, fd, length);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user