mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-01-14 12:10:26 +03:00
Ubuntu 22.04 integration: Cppcheck
Suppress a false positive found by new Cppcheck version. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: szubersk <szuberskidamian@gmail.com> Closes #14148
This commit is contained in:
parent
b46be903fb
commit
28ea4f9b08
@ -91,6 +91,7 @@ nfs_init_tmpfile(const char *prefix, const char *mdir, struct tmpfile *tmpf)
|
|||||||
mkdir(mdir, 0755) < 0 &&
|
mkdir(mdir, 0755) < 0 &&
|
||||||
errno != EEXIST) {
|
errno != EEXIST) {
|
||||||
fprintf(stderr, "failed to create %s: %s\n",
|
fprintf(stderr, "failed to create %s: %s\n",
|
||||||
|
// cppcheck-suppress uninitvar
|
||||||
mdir, strerror(errno));
|
mdir, strerror(errno));
|
||||||
return (B_FALSE);
|
return (B_FALSE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user