<p>Alexander Traud has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/7856">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">editline: Avoid comparison between pointer and zero character constant.<br><br>gcc 7.2 warned about this.<br><br>ASTERISK-27559<br><br>Change-Id: I48960dda9cf0a11b6a9426f775e632363f8caa74<br>---<br>M main/editline/term.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/56/7856/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/editline/term.c b/main/editline/term.c<br>index 03623be..6814cc4 100644<br>--- a/main/editline/term.c<br>+++ b/main/editline/term.c<br>@@ -428,7 +428,7 @@<br> */<br> tlen = 0;<br> for (tmp = tlist; tmp < &tlist[T_str]; tmp++)<br>- if (*tmp != NULL && *tmp != '\0' && *tmp != *str) {<br>+ if (*tmp != NULL && **tmp != '\0' && *tmp != *str) {<br> char *ptr;<br> <br> for (ptr = *tmp; *ptr != '\0'; termbuf[tlen++] = *ptr++)<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/7856">change 7856</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/7856"/><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: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I48960dda9cf0a11b6a9426f775e632363f8caa74 </div>
<div style="display:none"> Gerrit-Change-Number: 7856 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexander Traud <pabstraud@compuserve.com> </div>