Commit 02719ec4 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

tweaks: fuse two ifs into one

parent 415bf826
Showing with 3 additions and 3 deletions
+3 -3
......@@ -3201,9 +3201,10 @@ void do_linter(void)
#ifdef ENABLE_MULTIBUFFER
struct stat lintfileinfo;
if (stat(curlint->filename, &lintfileinfo) != -1) {
if (openfile->current_stat->st_ino != lintfileinfo.st_ino) {
if (stat(curlint->filename, &lintfileinfo) != -1 &&
openfile->current_stat->st_ino != lintfileinfo.st_ino) {
openfilestruct *tmpof = openfile;
while (tmpof != openfile->next) {
if (tmpof->current_stat->st_ino == lintfileinfo.st_ino)
break;
......@@ -3260,7 +3261,6 @@ void do_linter(void)
}
} else
openfile = tmpof;
}
}
#endif /* ENABLE_MULTIBUFFER */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment