From: Denys Vlasenko Date: Mon, 19 Apr 2010 03:39:41 +0000 (-0700) Subject: vi: remove superfluous check on filename == "" X-Git-Tag: 1_17_0~281 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=def4783a8a8b00f58d224ff6735d3532809aeb54;p=oweals%2Fbusybox.git vi: remove superfluous check on filename == "" Signed-off-by: Denys Vlasenko --- 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" 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; }