diff options
Diffstat (limited to 'apps/app_directory.c')
-rw-r--r-- | apps/app_directory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_directory.c b/apps/app_directory.c index ff342085f..e176d7ee2 100644 --- a/apps/app_directory.c +++ b/apps/app_directory.c @@ -582,7 +582,7 @@ static int search_directory(const char *context, struct ast_config *vmcfg, struc strsep(&bufptr, ","); pos = strsep(&bufptr, ","); - res = check_match(&item, pos, v->name, ext, use_first_name); + res = check_match(&item, S_OR(pos, ""), v->name, ext, use_first_name); if (!res) continue; else if (res < 0) |