diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2001-01-16 09:45:03 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2001-01-16 09:45:03 +0000 |
commit | 9607098926e253c5f430a422b3b64d346891e557 (patch) | |
tree | edf26afe0542e0c6851a4533fa2eb1016505d23f | |
parent | b6dfc391cb86914b69ffe2a626f1645dbba00b6c (diff) | |
download | gcc-9607098926e253c5f430a422b3b64d346891e557.zip gcc-9607098926e253c5f430a422b3b64d346891e557.tar.gz gcc-9607098926e253c5f430a422b3b64d346891e557.tar.bz2 |
exception_support.cc (__cp_pop_exception): Fix uninitialized thinko in last change.
* libsupc++/exception_support.cc (__cp_pop_exception): Fix
uninitialized thinko in last change.
From-SVN: r39063
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/libsupc++/exception_support.cc | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 68a52ed..6e5468b 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2001-01-16 Nathan Sidwell <nathan@codesourcery.com> + + * libsupc++/exception_support.cc (__cp_pop_exception): Fix + uninitialized thinko in last change. + 2001-01-16 Mark Mitchell <mark@codesourcery.com> * libsupc++/exception_support.cc (__cp_pop_exception): Change diff --git a/libstdc++-v3/libsupc++/exception_support.cc b/libstdc++-v3/libsupc++/exception_support.cc index 771f5b4..1356259 100644 --- a/libstdc++-v3/libsupc++/exception_support.cc +++ b/libstdc++-v3/libsupc++/exception_support.cc @@ -191,9 +191,9 @@ __cp_push_exception (void *value, void *type, cleanup_fn cleanup) current catch block. */ extern "C" void -__cp_pop_exception (void* v) +__cp_pop_exception (void* p_) { - cp_eh_info *p; + cp_eh_info *p = static_cast <cp_eh_info *> (p_); cp_eh_info **stack = __get_eh_info (); cp_eh_info **q = stack; |