diff options
Diffstat (limited to 'src/nvim/if_cscope.c')
| -rw-r--r-- | src/nvim/if_cscope.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/if_cscope.c b/src/nvim/if_cscope.c index 2af09f10cb..2dad8fb781 100644 --- a/src/nvim/if_cscope.c +++ b/src/nvim/if_cscope.c @@ -459,7 +459,7 @@ staterr: int i; // if filename is a directory, append the cscope database name to it - if ((file_info.stat.st_mode & S_IFMT) == S_IFDIR) { + if (S_ISDIR(file_info.stat.st_mode)) { fname2 = (char *)xmalloc(strlen(CSCOPE_DBFILE) + strlen(fname) + 2); while (fname[strlen(fname)-1] == '/' |