projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
660813e
)
Make sure krb5_init_ets() only initalizes the error tables once
author
Theodore Tso
<tytso@mit.edu>
Sat, 10 Jul 1993 02:43:16 +0000
(
02:43
+0000)
committer
Theodore Tso
<tytso@mit.edu>
Sat, 10 Jul 1993 02:43:16 +0000
(
02:43
+0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2618
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/krb5/error_tables/init_ets.c
patch
|
blob
|
history
diff --git
a/src/lib/krb5/error_tables/init_ets.c
b/src/lib/krb5/error_tables/init_ets.c
index db88d77cc447e1f67d548239bb48a9e968bbb66e..376e2479cfd3d14d0361b0b0910ee830a86749dd 100644
(file)
--- a/
src/lib/krb5/error_tables/init_ets.c
+++ b/
src/lib/krb5/error_tables/init_ets.c
@@
-35,6
+35,12
@@
static char rcsid_init_ets_c[] =
void
krb5_init_ets PROTOTYPE((void))
{
+ static int initialized = 0;
+
+ if (initialized)
+ return;
+
+ initialized++;
initialize_krb5_error_table();
initialize_kdb5_error_table();
initialize_isod_error_table();