/* Note that for thread-safety reasons this function can only be called once.  */
void g_set_prgname(const gchar *prgname)
/* Note that for thread-safety reasons this function can only be called once.  */
void g_set_prgname(const gchar *prgname)
{
  G_LOCK (g_prgname);
  g_free (g_prgname);
  g_prgname = g_strdup (prgname);
  G_UNLOCK (g_prgname);
}