From 0c88ecd3bcbf1909b285c0abd57299beb96cd2f6 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 14 Nov 2014 16:31:30 -0700 Subject: [PATCH] Quiet a cppcheck false positive. --- plugins/sudoers/alias.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/sudoers/alias.c b/plugins/sudoers/alias.c index 7ac6051fa..fbe770cbd 100644 --- a/plugins/sudoers/alias.c +++ b/plugins/sudoers/alias.c @@ -62,9 +62,9 @@ alias_compare(const void *v1, const void *v2) int res; debug_decl(alias_compare, SUDOERS_DEBUG_ALIAS, sudoers_debug_instance) - if (v1 == NULL) + if (a1 == NULL) res = -1; - else if (v2 == NULL) + else if (a2 == NULL) res = 1; else if ((res = strcmp(a1->name, a2->name)) == 0) res = a1->type - a2->type; -- 2.40.0