Quiet a few harmless cppcheck warnings.

This commit is contained in:
Todd C. Miller
2021-01-06 13:01:10 -07:00
parent 84b3a1dae1
commit 92c88d4105
9 changed files with 22 additions and 19 deletions

View File

@@ -458,7 +458,7 @@ sudo_ldap_role_to_priv(const char *cn, void *hosts, void *runasusers,
TAILQ_INSERT_TAIL(&priv->cmndlist, cmndspec, entries);
/* Initialize cmndspec */
TAGS_INIT(cmndspec->tags);
TAGS_INIT(&cmndspec->tags);
cmndspec->notbefore = UNSPEC;
cmndspec->notafter = UNSPEC;
cmndspec->timeout = UNSPEC;