Use ast_strlen_zero instead of &id in app_queue.c (Thanks folsson)
[asterisk/asterisk.git] / apps / app_queue.c
index 86047fd..fbe83b1 100755 (executable)
@@ -1859,7 +1859,7 @@ static int manager_queues_status( struct mansession *s, struct message *m )
        time(&now);
        ast_mutex_lock(&qlock);
        q = queues;
-       if (id && &id) {
+       if (id && !ast_strlen_zero(id)) {
                snprintf(idText,256,"ActionID: %s\r\n",id);
        }
        while(q) {