Index: apps/app_directory.c =================================================================== --- apps/app_directory.c (revision 217210) +++ apps/app_directory.c (working copy) @@ -473,6 +473,11 @@ 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, pos, v->name, ext, 0 /* use_first_name */);