Commit ca52ce04 ca52ce046606cb72c29a771c0c28196a1aada964 by Sergey Poznyakoff

Bugfix

* libmailutils/cfg/gocs.c (mu_gocs_register): Avoid registering
same capability twice.
1 parent b60a5698
......@@ -252,11 +252,15 @@ mu_gocs_register (const char *capa, mu_gocs_init_fp init)
{
int i;
for (i = 0; _gocs_table[i].name; i++)
{
if (i == MAX_GOCS-1)
{
mu_error (_("gocs table overflow"));
abort ();
}
else if (strcmp (_gocs_table[i].name, capa) == 0)
return;
}
_gocs_table[i].name = capa;
_gocs_table[i].init = init;
}
......