From: Jeffrey Altman Date: Tue, 18 Jan 2005 08:07:47 +0000 (+0000) Subject: re-initialize 'terminated' variable to 0 during initialization routine X-Git-Tag: ms-bug-test-20060525~365 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=98f2275ced68cf5db0003377270dc67003e9ca5e;p=krb5.git re-initialize 'terminated' variable to 0 during initialization routine ticket: 2888 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17051 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/et/error_message.c b/src/util/et/error_message.c index e60029b5c..cb76b2a37 100644 --- a/src/util/et/error_message.c +++ b/src/util/et/error_message.c @@ -37,6 +37,7 @@ extern const int sys_nerr; /*@null@*/ static struct et_list * _et_list = (struct et_list *) NULL; /*@null@*//*@only@*/static struct dynamic_et_list * et_list_dynamic; static k5_mutex_t et_list_lock = K5_MUTEX_PARTIAL_INITIALIZER; +static int terminated = 0; /* for debugging shlib fini sequence errors */ MAKE_INIT_FUNCTION(com_err_initialize); MAKE_FINI_FUNCTION(com_err_terminate); @@ -44,6 +45,7 @@ MAKE_FINI_FUNCTION(com_err_terminate); int com_err_initialize(void) { int err; + terminated = 0; err = k5_mutex_finish_init(&et_list_lock); if (err) return err; @@ -56,7 +58,6 @@ int com_err_initialize(void) return 0; } -static int terminated = 0; /* for debugging shlib fini sequence errors */ void com_err_terminate(void) { struct dynamic_et_list *e, *enext;