Make sure krb5_init_ets() only initalizes the error tables once
authorTheodore Tso <tytso@mit.edu>
Sat, 10 Jul 1993 02:43:16 +0000 (02:43 +0000)
committerTheodore 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

index db88d77cc447e1f67d548239bb48a9e968bbb66e..376e2479cfd3d14d0361b0b0910ee830a86749dd 100644 (file)
@@ -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();