<p>Neels Hofmeyr <strong>merged</strong> this change.</p><p><a href="https://gerrit.osmocom.org/12670">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Harald Welte: Looks good to me, approved
  Vadim Yanitskiy: Looks good to me, but someone else must approve

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">osmo_fsm_state_name: make robust against NULL fi<br><br>Change-Id: I61d4f7dfada2763948f330745ac886405d889a12<br>---<br>M include/osmocom/core/fsm.h<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/core/fsm.h b/include/osmocom/core/fsm.h</span><br><span>index 5bf5328..df7e348 100644</span><br><span>--- a/include/osmocom/core/fsm.h</span><br><span>+++ b/include/osmocom/core/fsm.h</span><br><span>@@ -220,7 +220,7 @@</span><br><span> </span><br><span> /*! return the name of the state the FSM instance is currently in. */</span><br><span> static inline const char *osmo_fsm_inst_state_name(struct osmo_fsm_inst *fi)</span><br><span style="color: hsl(0, 100%, 40%);">-{ return osmo_fsm_state_name(fi->fsm, fi->state); }</span><br><span style="color: hsl(120, 100%, 40%);">+{ return fi ? osmo_fsm_state_name(fi->fsm, fi->state) : "NULL"; }</span><br><span> </span><br><span> /*! perform a state change of the given FSM instance</span><br><span>  *</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/12670">change 12670</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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.osmocom.org/12670"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: I61d4f7dfada2763948f330745ac886405d889a12 </div>
<div style="display:none"> Gerrit-Change-Number: 12670 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Vadim Yanitskiy <axilirator@gmail.com> </div>