aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_directory.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_directory.c')
-rw-r--r--apps/app_directory.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/app_directory.c b/apps/app_directory.c
index fe8139de5..82a9fccb8 100644
--- a/apps/app_directory.c
+++ b/apps/app_directory.c
@@ -525,6 +525,11 @@ static int search_directory_sub(const char *context, struct ast_config *vmcfg, s
strsep(&bufptr, ",");
pos = strsep(&bufptr, ",");
+ /* No name to compare against */
+ if (ast_strlen_zero(pos)) {
+ continue;
+ }
+
res = 0;
if (ast_test_flag(&flags, OPT_LISTBYLASTNAME)) {
res = check_match(&item, context, pos, v->name, ext, 0 /* use_first_name */);