<p>Kevin Harwell <strong>posted comments</strong> on this change.</p><p><a href="https://gerrit.asterisk.org/8862">View Change</a></p><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>(2 comments)</p><ul style="list-style: none; padding-left: 20px;"><li><p><a href="https://gerrit.asterisk.org/#/c/8862/1/pbx/pbx_lua.c">File pbx/pbx_lua.c:</a></p><ul style="list-style: none; padding-left: 20px;"><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/8862/1/pbx/pbx_lua.c@810">Patch Set #1, Line 810:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">         lua_pop(L, 2);<br>                /*  Keep at least original err message */<br>             lua_pushvalue(L, message_index);<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Maybe I misunderstand (not really familiar with this section of code), but the pop here removes two items off the stack correct? That's removing the "debug" and the "\n"? </p><p style="white-space: pre-wrap; word-wrap: break-word;">If that's the case I don't think you need to add the value at message_index to the stack here as it should be back at the top of the stack after the call to pop.</p></li><li><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/8862/1/pbx/pbx_lua.c@818">Patch Set #1, Line 818:</a> </p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><pre style="font-family: monospace,monospace; white-space: pre-wrap;">               lua_pop(L, 3);<br>                lua_pushvalue(L, message_index);<br></pre></blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Same thing here I believe? I think you can drop the call to pushvalue.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/8862">change 8862</a>. To unsubscribe, 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/8862"/><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: I34ba0a098f1ae06a3af7b4d1b098bd43f42f96c8 </div>
<div style="display:none"> Gerrit-Change-Number: 8862 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Christof Lauber <christof.lauber@annax.ch> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 26 Apr 2018 23:53:06 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>