<p>Neels Hofmeyr has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/12714">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">logging sanity: initialize osmo_log_info = NULL<br><br>logging.c assert_loginfo() wants to make sure that an osmo_log_info was set by<br>asserting non-NULL. Hence we should make sure it is initialized as NULL in the<br>first place.<br><br>Change-Id: Ifd97c945f63cfe9850f025db7e69370866ea133e<br>---<br>M src/logging.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.osmocom.org:29418/libosmocore refs/changes/14/12714/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/logging.c b/src/logging.c</span><br><span>index 2bb53ae..b8a84da 100644</span><br><span>--- a/src/logging.c</span><br><span>+++ b/src/logging.c</span><br><span>@@ -57,7 +57,7 @@</span><br><span> osmo_static_assert(_LOG_FLT_COUNT <= 8*sizeof(((struct log_target*)NULL)->filter_map),</span><br><span>                enum_logging_filters_fit_in_log_target_filter_map);</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-struct log_info *osmo_log_info;</span><br><span style="color: hsl(120, 100%, 40%);">+struct log_info *osmo_log_info = NULL;</span><br><span> </span><br><span> static struct log_context log_context;</span><br><span> void *tall_log_ctx = NULL;</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/12714">change 12714</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/12714"/><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: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ifd97c945f63cfe9850f025db7e69370866ea133e </div>
<div style="display:none"> Gerrit-Change-Number: 12714 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>