projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43b094b
)
vi: remove superfluous check on filename == ""
author
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 19 Apr 2010 03:39:41 +0000
(20:39 -0700)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Mon, 19 Apr 2010 03:39:41 +0000
(20:39 -0700)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
editors/vi.c
patch
|
blob
|
history
diff --git
a/editors/vi.c
b/editors/vi.c
index 28612508fd87cf071a5fe45479017c8d3c571b76..f925984badd962f472768e70e6c8d66456803cba 100644
(file)
--- 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"
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;
}