<p>George Joseph has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/18509">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">GCC12: Fixes for 18+. state_id_by_topic comparing wrong value<br><br>GCC 12 caught an issue in state_id_by_topic where we were<br>checking a pointer for NULL instead of the contents of<br>the pointer for '\0'.<br><br>ASTERISK-30044<br><br>Change-Id: Ia0b04d4fff45c92acb7f07132a33622fa341148e<br>---<br>M main/stasis_state.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/09/18509/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/main/stasis_state.c b/main/stasis_state.c</span><br><span>index 75093a0..decf228 100644</span><br><span>--- a/main/stasis_state.c</span><br><span>+++ b/main/stasis_state.c</span><br><span>@@ -113,7 +113,7 @@</span><br><span> id = strchr(stasis_topic_name(state_topic), '/');</span><br><span> </span><br><span> /* The state's unique id should always exist */</span><br><span style="color: hsl(0, 100%, 40%);">- ast_assert(id != NULL && (id + 1) != NULL);</span><br><span style="color: hsl(120, 100%, 40%);">+ ast_assert(id != NULL && *(id + 1) != '\0');</span><br><span> </span><br><span> return (id + 1);</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/18509">change 18509</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/c/asterisk/+/18509"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 19 </div>
<div style="display:none"> Gerrit-Change-Id: Ia0b04d4fff45c92acb7f07132a33622fa341148e </div>
<div style="display:none"> Gerrit-Change-Number: 18509 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>