]> granicus.if.org Git - sudo/commitdiff
Silence a false positive from cppcheck.
authorTodd C. Miller <Todd.Miller@sudo.ws>
Sat, 10 Feb 2018 11:08:42 +0000 (04:08 -0700)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Sat, 10 Feb 2018 11:08:42 +0000 (04:08 -0700)
plugins/sudoers/mkdir_parents.c

index f6871c70444e56f16914c4526b87496ea74cee20..3c22cde9f3f067d28dc521094e2dc4b25c9e4be3 100644 (file)
@@ -44,7 +44,7 @@ sudo_mkdir_parents(char *path, uid_t uid, gid_t gid, mode_t mode, bool quiet)
     char *slash = path;
     debug_decl(sudo_mkdir_parents, SUDOERS_DEBUG_UTIL)
 
-    /* Create parent directories as needed. */
+    /* cppcheck-suppress nullPointerRedundantCheck */
     while ((slash = strchr(slash + 1, '/')) != NULL) {
        *slash = '\0';
        sudo_debug_printf(SUDO_DEBUG_DEBUG|SUDO_DEBUG_LINENO,