← Commit list

def4783a8

Denys Vlasenko
Denys Vlasenko
2010-04-18
FAILED Duration: 25s

Subject

vi: remove superfluous check on filename == ""

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

editors/vi.c+1 -1
@@ -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;
}