mirror of git://git.suckless.org/ubase
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:
parent
f9a9d4d8fc
commit
a707baffd6
|
@ -19,7 +19,7 @@ main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int cflag = 0, sflag = 0;
|
int cflag = 0, sflag = 0;
|
||||||
int fd, i, ret = EXIT_SUCCESS;
|
int fd, i, ret = EXIT_SUCCESS;
|
||||||
long size;
|
long size = 0;
|
||||||
|
|
||||||
ARGBEGIN {
|
ARGBEGIN {
|
||||||
case 's':
|
case 's':
|
||||||
|
@ -33,7 +33,7 @@ main(int argc, char *argv[])
|
||||||
usage();
|
usage();
|
||||||
} ARGEND;
|
} ARGEND;
|
||||||
|
|
||||||
if (argc < 1 || !sflag)
|
if (argc < 1 || sflag == 0)
|
||||||
usage();
|
usage();
|
||||||
|
|
||||||
for (i = 0; i < argc; i++) {
|
for (i = 0; i < argc; i++) {
|
||||||
|
|
Loading…
Reference in New Issue