diff options
| author | Maxime Coste <mawww@kakoune.org> | 2021-03-12 09:10:19 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2021-03-12 09:10:19 +1100 |
| commit | 545db22ae464668d36fad500690a77c019936910 (patch) | |
| tree | a78e6de3e0e1e8a436b5aec509843d73eea9b898 /src/file.cc | |
| parent | 8e463e63ea2e837a442c55580b1bb0d72ec5b25f (diff) | |
Fix typo in file.cc
Diffstat (limited to 'src/file.cc')
| -rw-r--r-- | src/file.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file.cc b/src/file.cc index 8c9705b5..a92c6783 100644 --- a/src/file.cc +++ b/src/file.cc @@ -362,7 +362,7 @@ void write_buffer_to_file(Buffer& buffer, StringView filename, bool force = flags & WriteFlags::Force; if ((replace or force) and (::stat(zfilename, &st) != 0 or - (sb.st_mode & S_IFMT) != S_IFREG)) + (st.st_mode & S_IFMT) != S_IFREG)) { force = false; replace = false; |
