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.
This commit is contained in:
Todd C. Miller
2016-05-05 15:12:37 -06:00
parent 64142f9da2
commit a09e45d339

View File

@@ -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