Skip to content

Commit

Permalink
WCS: replace remove() by VSIUnlink() and please Coverity Scan
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jan 20, 2025
1 parent 8f576c0 commit d731ec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frmts/wcs/wcsutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ bool SetupCache(std::string &cache, bool clear)
}
const std::string filepath =
CPLFormFilenameSafe(cache.c_str(), folder[i], nullptr);
remove(filepath.c_str());
CPL_IGNORE_RET_VAL(VSIUnlink(filepath.c_str()));
}
CSLDestroy(folder);
}
Expand Down

0 comments on commit d731ec6

Please sign in to comment.