diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 7689b750c5..732ea610ee 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -2563,9 +2563,9 @@ buf_write ( /* * Get information about original file (if there is one). */ + FileInfo file_info_old; #if defined(UNIX) perm = -1; - FileInfo file_info_old; if (!os_fileinfo((char *)fname, &file_info_old)) { newfile = TRUE; } else {