From a09e45d339c79deb074a5a38b54a2c9317d1acf5 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 5 May 2016 15:12:37 -0600 Subject: [PATCH] In fill_args(), check for "arg_size == 0" instead of "sudoerslval.command.args == NULL" since the latter leads Coverity to imply that sudoerslval.command.args could be NULL later on. Coverity CID 104093. --- plugins/sudoers/toke_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sudoers/toke_util.c b/plugins/sudoers/toke_util.c index be46782f9..01b4fe110 100644 --- a/plugins/sudoers/toke_util.c +++ b/plugins/sudoers/toke_util.c @@ -131,7 +131,7 @@ fill_args(const char *s, size_t len, int addspace) char *p; debug_decl(fill_args, SUDOERS_DEBUG_PARSER) - if (sudoerslval.command.args == NULL) { + if (arg_size == 0) { addspace = 0; new_len = len; } else -- 2.40.0