<p>In <a href="https://github.com/geany/geany/pull/629#discussion_r40365631">src/plugins.c</a>:</p>
<pre style='color:#555'>> +    GList *list;
> +
> +  gtk_tree_store_clear(store);
> +  list = g_list_first(plugin_list);
> +  if (list == NULL)
> +  {
> +          gtk_tree_store_append(store, &iter, NULL);
> +          gtk_tree_store_set(store, &iter, PLUGIN_COLUMN_CHECK, FALSE,
> +                          PLUGIN_COLUMN_PLUGIN, NULL, -1);
> +  }
> +  else
> +  {
> +          Plugin *p;
> +          for (; list != NULL; list = list->next)
> +          {
> +                  p = list->data;
</pre>
<p>Like for (Plugin *p = list->data; list != NULL; list = list->next, p = list ? list->data : NULL)?</p>

<p>I'm not sure that's an improvement really.</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/629/files#r40365631">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ4DOrLzL6EiBMTg2pFCoVJlXSq_hks5o1E6bgaJpZM4Fy7fG.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/629/files#r40365631"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>