]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Fix a typo from 190661.
authorRussell Bryant <russell@russellbryant.com>
Mon, 27 Apr 2009 19:03:59 +0000 (19:03 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 27 Apr 2009 19:03:59 +0000 (19:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@190662 65c4cc65-6c06-0410-ace0-fbb531ad65f3

res/res_smdi.c

index e13b5d4d935d7b870a46dad8afbaeed5b32e172e..e3da188c982dce2f151facea5e3a59cf66b1ed1c 100644 (file)
@@ -423,8 +423,6 @@ static void *smdi_msg_find(struct ast_smdi_interface *iface,
                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 @@ static void *smdi_msg_find(struct ast_smdi_interface *iface,
                        } while (0); );
 
                        msg = mwi_msg;
+               } else {
+                       msg = ASTOBJ_CONTAINER_FIND(&iface->mwi_q, search_key);
                }
                break;
        }