<p>Patch set 1:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p><a href="https://gerrit.asterisk.org/9446">View Change</a></p><p>6 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.asterisk.org/#/c/9446/1/main/loader.c">File main/loader.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/9446/1/main/loader.c@1611">Patch Set #1, Line 1611:</a> <code style="font-family:monospace,monospace">               ast_log(LOG_ERROR, "Allocation failure adding module to load priority list.\n");</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">This is redundant with the allocation error built into ast_calloc()</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/9446/1/main/loader.c@1617">Patch Set #1, Line 1617:</a> <code style="font-family:monospace,monospace">              ast_log(LOG_ERROR, "Allocation failure adding module to load priority list.\n");</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">This is redundant with the allocation error built into ast_strdup()</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/9446/1/main/loader.c@1676">Patch Set #1, Line 1676:</a> <code style="font-family:monospace,monospace">                      res = -1;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Should we be returning -2 here?</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/9446/1/main/loader.c@1955">Patch Set #1, Line 1955:</a> <code style="font-family:monospace,monospace">           AST_LIST_TRAVERSE_SAFE_BEGIN(load_order, order, entry) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">With the new module loader dependency tree, this loop needs to tell the difference between a built-in module and an external module.  Currently it allows the user to noload builtin modules:</p><p style="white-space: pre-wrap; word-wrap: break-word;">noload=CDR Engine</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/9446/1/main/loader.c@1990">Patch Set #1, Line 1990:</a> <code style="font-family:monospace,monospace">  if ((res = loader_builtin_init(&load_order))) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Assignment in if</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/9446/1/main/loader.c@1994">Patch Set #1, Line 1994:</a> <code style="font-family:monospace,monospace">        if ((res = loader_config_init(&load_order))) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Assignment in if</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/9446">change 9446</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/9446"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ie4176699133f0e3a823b43f90c3348677e43a5f3 </div>
<div style="display:none"> Gerrit-Change-Number: 9446 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Mon, 16 Jul 2018 21:48:06 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>