From 98f2275ced68cf5db0003377270dc67003e9ca5e Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Tue, 18 Jan 2005 08:07:47 +0000 Subject: [PATCH] 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 --- src/util/et/error_message.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.26.2