[Asterisk-code-review] CLI: Remove calls to ast cli generator. (asterisk[13])

Kevin Harwell asteriskteam at digium.com
Mon Nov 20 14:58:19 CST 2017


Kevin Harwell has posted comments on this change. ( https://gerrit.asterisk.org/7258 )

Change subject: CLI: Remove calls to ast_cli_generator.
......................................................................


Patch Set 1: Code-Review-1

(1 comment)

https://gerrit.asterisk.org/#/c/7258/1/tests/test_substitution.c
File tests/test_substitution.c:

https://gerrit.asterisk.org/#/c/7258/1/tests/test_substitution.c@309
PS1, Line 309: 	funcs = ast_cli_completion_vector("core show function", "");
             : 
             : 	/* Skip "best match" element 0 */
             : 	for (i = 1; i < AST_VECTOR_SIZE(funcs); i++) {
Need a NULL check here. If "funcs" is NULL then the vector size check will blow up.



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

Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-MessageType: comment
Gerrit-Change-Id: I8cd6b93905363cf7a33a2d2b0e2a8f8446d9f248
Gerrit-Change-Number: 7258
Gerrit-PatchSet: 1
Gerrit-Owner: Corey Farrell <git at cfware.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Comment-Date: Mon, 20 Nov 2017 20:58:19 +0000
Gerrit-HasComments: Yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20171120/78cb5e49/attachment.html>


More information about the asterisk-code-review mailing list