Initialize size to 0 to avoid gcc warnings

We can never get to a call to ftruncate() without specifying size
so the compiler warning is bogus.
This commit is contained in:
sin 2014-04-14 14:52:16 +01:00
parent f9a9d4d8fc
commit a707baffd6
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ main(int argc, char *argv[])
{
int cflag = 0, sflag = 0;
int fd, i, ret = EXIT_SUCCESS;
long size;
long size = 0;
ARGBEGIN {
case 's':
@ -33,7 +33,7 @@ main(int argc, char *argv[])
usage();
} ARGEND;
if (argc < 1 || !sflag)
if (argc < 1 || sflag == 0)
usage();
for (i = 0; i < argc; i++) {