[asterisk-commits] russell: branch 1.6.0 r156012 -	/branches/1.6.0/apps/app_directory.c
    SVN commits to the Asterisk project 
    asterisk-commits at lists.digium.com
       
    Tue Nov 11 15:28:57 CST 2008
    
    
  
Author: russell
Date: Tue Nov 11 15:28:57 2008
New Revision: 156012
URL: http://svn.digium.com/view/asterisk?view=rev&rev=156012
Log:
Don't blow up if we get NULL when trying to parse out the full name field
(fixed for Jared in the training room)
Modified:
    branches/1.6.0/apps/app_directory.c
Modified: branches/1.6.0/apps/app_directory.c
URL: http://svn.digium.com/view/asterisk/branches/1.6.0/apps/app_directory.c?view=diff&rev=156012&r1=156011&r2=156012
==============================================================================
--- branches/1.6.0/apps/app_directory.c (original)
+++ branches/1.6.0/apps/app_directory.c Tue Nov 11 15:28:57 2008
@@ -582,7 +582,7 @@
 		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)
    
    
More information about the asterisk-commits
mailing list