re-initialize 'terminated' variable to 0 during initialization routine
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 18 Jan 2005 08:07:47 +0000 (08:07 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 18 Jan 2005 08:07:47 +0000 (08:07 +0000)
ticket: 2888

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17051 dc483132-0cff-0310-8789-dd5450dbe970

src/util/et/error_message.c

index e60029b5c64b068c6f86fc2846c57235d3d76904..cb76b2a37520ed279eb653fd4d4254394923c537 100644 (file)
@@ -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;