state_interface could be NULL, so use the never-NULL cur->state_interface for this...
authorMark Michelson <mmichelson@digium.com>
Thu, 17 Jan 2008 16:33:24 +0000 (16:33 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 17 Jan 2008 16:33:24 +0000 (16:33 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98994 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index ed13c3d..a2db787 100644 (file)
@@ -842,7 +842,7 @@ static struct member *create_queue_member(const char *interface, const char *mem
                        ast_copy_string(cur->membername, interface, sizeof(cur->membername));
                if (!strchr(cur->interface, '/'))
                        ast_log(LOG_WARNING, "No location at interface '%s'\n", interface);
-               cur->status = ast_device_state(state_interface);
+               cur->status = ast_device_state(cur->state_interface);
        }
 
        return cur;