mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 22:36:09 +00:00
fix: pvs warnings (#21145)
* fix(PVS/V009): start file with special comment * fix(PVS/V501): identical sub-expressions for comparison * fix(PVS/V560): part of conditional expression is always true/false * fix(PVS/V593): review expression of type A = B < C * fix(PVS/V614): potentially uninitialized variable used
This commit is contained in:
@@ -974,7 +974,7 @@ int os_file_mkdir(char *fname, int32_t mode)
|
||||
*tail = NUL;
|
||||
int r;
|
||||
char *failed_dir;
|
||||
if ((r = os_mkdir_recurse(fname, mode, &failed_dir) < 0)) {
|
||||
if (((r = os_mkdir_recurse(fname, mode, &failed_dir)) < 0)) {
|
||||
semsg(_(e_mkdir), failed_dir, os_strerror(r));
|
||||
xfree(failed_dir);
|
||||
}
|
||||
|
Reference in New Issue
Block a user