<p>Neels Hofmeyr <strong>uploaded patch set #2</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/12879">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">get_value_string(): guard against NULL<br><br>get_value_string() conveniently prints the value number to a static buffer if<br>it is unknown in a value_string array. Do the same if the value_string array<br>pointer itself is NULL.<br><br>If a value string array is user supplied and might be NULL, one could add a<br>separate NULL check around it; but by making get_value_string() itself guard<br>against NULL, another static char buffer to print the value number is avoided.<br><br>Change-Id: Ie640e9258a959da8f4f9089478de993509853997<br>---<br>M src/utils.c<br>1 file changed, 3 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/79/12879/2</pre><p>To view, visit <a href="https://gerrit.osmocom.org/12879">change 12879</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/12879"/><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: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: Ie640e9258a959da8f4f9089478de993509853997 </div>
<div style="display:none"> Gerrit-Change-Number: 12879 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: Jenkins Builder (1000002) </div>