<p>In <a href="https://github.com/geany/geany/pull/797#discussion_r48275077">src/symbols.c</a>:</p>
<pre style='color:#555'>>  
> +          g_tree_search(tree, (GCompareFunc)tree_search_func, &user_data);
> +          list = g_tree_lookup(tree, GINT_TO_POINTER(user_data.found_line));
</pre>
<p>should this rather be guarded to whether search succeeded?  <code>if (g_tree_search(tree, ...)) { list = lookup() ... }</code></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/pull/797/files#r48275077">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJw2mqLTPVD9PxJfQMQFxpFR-nGW8ks5pSXwWgaJpZM4G0Ju3.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/797/files#r48275077"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>