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:
@@ -131,7 +131,7 @@ fill_args(const char *s, size_t len, int addspace)
|
|||||||
char *p;
|
char *p;
|
||||||
debug_decl(fill_args, SUDOERS_DEBUG_PARSER)
|
debug_decl(fill_args, SUDOERS_DEBUG_PARSER)
|
||||||
|
|
||||||
if (sudoerslval.command.args == NULL) {
|
if (arg_size == 0) {
|
||||||
addspace = 0;
|
addspace = 0;
|
||||||
new_len = len;
|
new_len = len;
|
||||||
} else
|
} else
|
||||||
|
Reference in New Issue
Block a user