[Asterisk-code-review] app queue.c: Fix error checking in QUEUE MEMBER() read. (asterisk[13])

Richard Mudgett asteriskteam at digium.com
Thu Aug 20 11:31:59 CDT 2015


Richard Mudgett has posted comments on this change.

Change subject: app_queue.c: Fix error checking in QUEUE_MEMBER() read.
......................................................................


Patch Set 2:

(1 comment)

https://gerrit.asterisk.org/#/c/1106/2/apps/app_queue.c
File apps/app_queue.c:

Line 8015: if (ast_strlen_zero(interface)) {
         : 		ast_log(LOG_ERROR, "QUEUE_MEMBER: Missing required interface argument.\n");
         : 		return NULL;
         : 	}
         : 
         : 	m = interface_exists(q, interface);
         : 	if (!m) {
         : 		ast_log(LOG_ERROR, "Queue member interface '%s' not in queue '%s'.\n",
         : 			interface, q->name);
         : 	}
> That's fine, but these look like new messages and for new messages, I would
Only the first one is new.  The second one was extracted from queue_function_mem_read() at the old line 8095 to make this helper function.


-- 
To view, visit https://gerrit.asterisk.org/1106
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I7294e13d27875851c2f4ef6818adba507509d224
Gerrit-PatchSet: 2
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Ashley Sanders <asanders at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Mark Michelson <mmichelson at digium.com>
Gerrit-Reviewer: Matt Jordan <mjordan at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-Reviewer: Scott Griepentrog <sgriepentrog at digium.com>
Gerrit-HasComments: Yes



More information about the asterisk-code-review mailing list