mirror of
https://git.busybox.net/busybox
synced 2026-01-31 16:43:21 +00:00
vi: remove superfluous check on filename == ""
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
43b094b584
commit
def4783a8a
1 changed files with 1 additions and 1 deletions
|
|
@ -2306,7 +2306,7 @@ static int file_size(const char *fn) // what is the byte size of "fn"
|
|||
int cnt;
|
||||
|
||||
cnt = -1;
|
||||
if (fn && fn[0] && stat(fn, &st_buf) == 0) // see if file exists
|
||||
if (fn && stat(fn, &st_buf) == 0) // see if file exists
|
||||
cnt = (int) st_buf.st_size;
|
||||
return cnt;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue