Silence a false positive from cppcheck.

This commit is contained in:
Todd C. Miller
2018-02-10 04:08:42 -07:00
parent d0d413d077
commit 6e2a267060

View 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,