cli: drop unnecessary NULL sentinel from nmc_complete_strings()
Since commit 62b939de4e
('cli: add nmc_complete_strv() which takes a
string array for completion that may contain NULL'), the sentinel is
no longer needed.
This commit is contained in:
@@ -189,10 +189,10 @@ next_arg (NmCli *nmc, int *argc, char ***argv, ...)
|
||||
|
||||
if (nmc && nmc->complete && *argc == 1) {
|
||||
while ((cmd_option = va_arg (args, const char *)))
|
||||
nmc_complete_strings (**argv, cmd_option, NULL);
|
||||
nmc_complete_strings (**argv, cmd_option);
|
||||
|
||||
if (***argv == '-')
|
||||
nmc_complete_strings (**argv, "--ask", "--show-secrets", NULL);
|
||||
nmc_complete_strings (**argv, "--ask", "--show-secrets");
|
||||
|
||||
va_end (args);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user