[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU Mailutils branch, master, updated. release-2.2-721-gca52ce0
From: |
Sergey Poznyakoff |
Subject: |
[SCM] GNU Mailutils branch, master, updated. release-2.2-721-gca52ce0 |
Date: |
Thu, 02 Jul 2015 14:03:28 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Mailutils".
http://git.savannah.gnu.org/cgit/mailutils.git/commit/?id=ca52ce046606cb72c29a771c0c28196a1aada964
The branch, master has been updated
via ca52ce046606cb72c29a771c0c28196a1aada964 (commit)
from b60a56980c2a728618f65aaa72a84b5c5d018938 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit ca52ce046606cb72c29a771c0c28196a1aada964
Author: Sergey Poznyakoff <address@hidden>
Date: Thu Jul 2 16:58:55 2015 +0300
Bugfix
* libmailutils/cfg/gocs.c (mu_gocs_register): Avoid registering
same capability twice.
-----------------------------------------------------------------------
Summary of changes:
libmailutils/cfg/gocs.c | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/libmailutils/cfg/gocs.c b/libmailutils/cfg/gocs.c
index 29317a8..dafc2e5 100644
--- a/libmailutils/cfg/gocs.c
+++ b/libmailutils/cfg/gocs.c
@@ -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 ();
- }
+ {
+ 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;
}
hooks/post-receive
--
GNU Mailutils
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU Mailutils branch, master, updated. release-2.2-721-gca52ce0,
Sergey Poznyakoff <=