diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-04-18 20:39:41 -0700 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-04-18 20:39:41 -0700 |
commit | def4783a8a8b00f58d224ff6735d3532809aeb54 (patch) | |
tree | 9bef515a5c65b51acef30c15534ba27649e0dce1 | |
parent | 43b094b584d8e24406bb819e056c9ce618167ee8 (diff) | |
download | busybox-w32-def4783a8a8b00f58d224ff6735d3532809aeb54.tar.gz busybox-w32-def4783a8a8b00f58d224ff6735d3532809aeb54.tar.bz2 busybox-w32-def4783a8a8b00f58d224ff6735d3532809aeb54.zip |
vi: remove superfluous check on filename == ""
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | editors/vi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editors/vi.c b/editors/vi.c index 28612508f..f925984ba 100644 --- a/editors/vi.c +++ b/editors/vi.c | |||
@@ -2306,7 +2306,7 @@ static int file_size(const char *fn) // what is the byte size of "fn" | |||
2306 | int cnt; | 2306 | int cnt; |
2307 | 2307 | ||
2308 | cnt = -1; | 2308 | cnt = -1; |
2309 | if (fn && fn[0] && stat(fn, &st_buf) == 0) // see if file exists | 2309 | if (fn && stat(fn, &st_buf) == 0) // see if file exists |
2310 | cnt = (int) st_buf.st_size; | 2310 | cnt = (int) st_buf.st_size; |
2311 | return cnt; | 2311 | return cnt; |
2312 | } | 2312 | } |