<p>In <a href="https://github.com/geany/geany/pull/957#discussion_r61928355">tagmanager/src/tm_source_file.c</a>:</p>
<pre style='color:#555'>> +    FILE *fp;
> +
> +  g_return_val_if_fail(tags_array && tags_file, FALSE);
> +
> +  fp = g_fopen(tags_file, "w");
> +  if (!fp)
> +          return FALSE;
> +
> +  fprintf(fp, "# format=tagmanager\n");
> +  for (i = 0; i < tags_array->len; i++)
> +  {
> +          TMTag *tag = TM_TAG(tags_array->pdata[i]);
> +
> +          write_tag(tag, fp, tm_tag_attr_type_t
> +            | tm_tag_attr_scope_t | tm_tag_attr_arglist_t | tm_tag_attr_vartype_t
> +            | tm_tag_attr_pointer_t);
</pre>
<p>unrelated, but <code>write_tag()</code> return value should be handled</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/geany/geany/pull/957/files/4dcc829e724a9018f92a8ef5201c2c0f257eeaa7..103d2c535862ae2682022dcfd714c2ffd983c42f#r61928355">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJxItgk15Xiniv9t0AfFiT2MAY8ucks5p94_0gaJpZM4Ht-Ad.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/957/files/4dcc829e724a9018f92a8ef5201c2c0f257eeaa7..103d2c535862ae2682022dcfd714c2ffd983c42f#r61928355"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>