Skinny: fix autocompletion

"skinny profile internal device <tab>" now works
This commit is contained in:
Mathieu Parent 2010-08-24 23:53:10 +02:00
parent 8921675668
commit 83a5342bfa
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ static switch_status_t skinny_api_list_devices(const char *line, const char *cur
status = SWITCH_STATUS_MEMERR;
return status;
}
if (!(argc = switch_separate_string(myline, ' ', argv, (sizeof(argv) / sizeof(argv[0])))) || argc != 5) {
if (!(argc = switch_separate_string(myline, ' ', argv, (sizeof(argv) / sizeof(argv[0])))) || argc < 4) {
return status;
}