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
1.6.0
Russell Bryant 17 years ago
parent 1611c5af38
commit 62eefbec73

@ -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)

Loading…
Cancel
Save