Correct sense of logic test committed in revision 220494.
authorKevin P. Fleming <kpfleming@digium.com>
Fri, 25 Sep 2009 14:44:40 +0000 (14:44 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Fri, 25 Sep 2009 14:44:40 +0000 (14:44 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@220495 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/channel.c

index d7c0fb4..eeedd4e 100644 (file)
@@ -1427,7 +1427,7 @@ static struct ast_channel *ast_channel_get_full(const char *name, size_t name_le
        }
 
        if ((chan = ao2_find(channels, &tmp_chan,
-                            (!ast_strlen_zero(name) && (name_len != 0)) ? OBJ_POINTER : 0))) {
+                            (!ast_strlen_zero(name) && (name_len == 0)) ? OBJ_POINTER : 0))) {
                return chan;
        }