From 28ea4f9b088fd7fb33593f09d37bae44ea85e4fb Mon Sep 17 00:00:00 2001 From: szubersk Date: Sat, 12 Nov 2022 22:29:29 +1000 Subject: [PATCH] Ubuntu 22.04 integration: Cppcheck Suppress a false positive found by new Cppcheck version. Reviewed-by: Brian Behlendorf Reviewed-by: Richard Yao Reviewed-by: George Melikov Signed-off-by: szubersk Closes #14148 --- lib/libshare/nfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libshare/nfs.c b/lib/libshare/nfs.c index 3251913cba..118ad7ef22 100644 --- a/lib/libshare/nfs.c +++ b/lib/libshare/nfs.c @@ -91,6 +91,7 @@ nfs_init_tmpfile(const char *prefix, const char *mdir, struct tmpfile *tmpf) mkdir(mdir, 0755) < 0 && errno != EEXIST) { fprintf(stderr, "failed to create %s: %s\n", + // cppcheck-suppress uninitvar mdir, strerror(errno)); return (B_FALSE); }