[asterisk-commits] russell: branch 1.4 r190662 - /branches/1.4/res/res_smdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Apr 27 14:04:02 CDT 2009


Author: russell
Date: Mon Apr 27 14:03:59 2009
New Revision: 190662

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=190662
Log:
Fix a typo from 190661.

Modified:
    branches/1.4/res/res_smdi.c

Modified: branches/1.4/res/res_smdi.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.4/res/res_smdi.c?view=diff&rev=190662&r1=190661&r2=190662
==============================================================================
--- branches/1.4/res/res_smdi.c (original)
+++ branches/1.4/res/res_smdi.c Mon Apr 27 14:03:59 2009
@@ -423,8 +423,6 @@
 		break;
 	case SMDI_MWI:
 		if (ast_strlen_zero(search_key)) {
-			msg = ASTOBJ_CONTAINER_FIND(&iface->mwi_q, search_key);
-		} else {
 			struct ast_smdi_mwi_message *mwi_msg = NULL;
 
 			/* No search key provided (the code from chan_dahdi does this).
@@ -435,6 +433,8 @@
 			} while (0); );
 
 			msg = mwi_msg;
+		} else {
+			msg = ASTOBJ_CONTAINER_FIND(&iface->mwi_q, search_key);
 		}
 		break;
 	}




More information about the asterisk-commits mailing list