From 62eefbec737d06a553c4e95d5753e8da3de6cabe Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Tue, 11 Nov 2008 21:28:57 +0000 Subject: [PATCH] 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: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@156012 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_directory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app_directory.c b/apps/app_directory.c index ff342085f9..e176d7ee2a 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)