From: Theodore Tso Date: Sat, 10 Jul 1993 02:43:16 +0000 (+0000) Subject: Make sure krb5_init_ets() only initalizes the error tables once X-Git-Tag: krb5-1.0-beta3~220 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1c7a4c7abac75d6d30a2aace5cd465f81f80cefa;p=krb5.git Make sure krb5_init_ets() only initalizes the error tables once git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2618 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/error_tables/init_ets.c b/src/lib/krb5/error_tables/init_ets.c index db88d77cc..376e2479c 100644 --- 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();