diff options
author | Jeffrey Altman <jaltman@secure-endpoints.com> | 2005-01-18 08:07:47 +0000 |
---|---|---|
committer | Jeffrey Altman <jaltman@secure-endpoints.com> | 2005-01-18 08:07:47 +0000 |
commit | 98f2275ced68cf5db0003377270dc67003e9ca5e (patch) | |
tree | b0f657a372a29baebc5131f44bceafd7cef6bf8d /src/util | |
parent | 191783e634d17927051337359f9abbe32c0e5b2e (diff) | |
download | krb5-98f2275ced68cf5db0003377270dc67003e9ca5e.tar.gz krb5-98f2275ced68cf5db0003377270dc67003e9ca5e.tar.xz krb5-98f2275ced68cf5db0003377270dc67003e9ca5e.zip |
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
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/et/error_message.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |