Use ast_strlen_zero instead of &id in app_queue.c (Thanks folsson)
authorJames Golovich <james@gnuinter.net>
Sun, 13 Jun 2004 19:45:59 +0000 (19:45 +0000)
committerJames Golovich <james@gnuinter.net>
Sun, 13 Jun 2004 19:45:59 +0000 (19:45 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3200 65c4cc65-6c06-0410-ace0-fbb531ad65f3

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;
        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) {
                snprintf(idText,256,"ActionID: %s\r\n",id);
        }
        while(q) {