mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-29 13:28:10 +00:00
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:
parent
64142f9da2
commit
a09e45d339
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user