summaryrefslogtreecommitdiff
path: root/pjlib/src/pj/except.c
diff options
context:
space:
mode:
Diffstat (limited to 'pjlib/src/pj/except.c')
-rw-r--r--pjlib/src/pj/except.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/pjlib/src/pj/except.c b/pjlib/src/pj/except.c
index bb21e05b..4bbd410b 100644
--- a/pjlib/src/pj/except.c
+++ b/pjlib/src/pj/except.c
@@ -57,6 +57,16 @@ static void exception_cleanup(void)
pj_thread_local_free(thread_local_id);
thread_local_id = -1;
}
+
+#if defined(PJ_HAS_EXCEPTION_NAMES) && PJ_HAS_EXCEPTION_NAMES != 0
+ {
+ unsigned i;
+ for (i=0; i<PJ_MAX_EXCEPTION_ID; ++i)
+ exception_id_names[i] = NULL;
+ }
+#else
+ last_exception_id = 1;
+#endif
}
PJ_DEF(void) pj_push_exception_handler_(struct pj_exception_state_t *rec)