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:
Thomas Haller
2019-04-12 15:40:01 +02:00
parent f917fabde4
commit 87d16e935c
6 changed files with 30 additions and 30 deletions

View File

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