diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-11 21:28:57 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-11-11 21:28:57 +0000 |
commit | 11b9943a11ba2f0005fad3f5fff6c9c7dd64666c (patch) | |
tree | 8c578263307ab7ee7402655c827f2d0779b9486f | |
parent | ba5bac29eb018b3bca9ca40cd0c5bfda27994678 (diff) |
Don't blow up if we get NULL when trying to parse out the full name field
(fixed for Jared in the training room)
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@156012 f38db490-d61c-443f-a65b-d21fe96a405b
-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) |