]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix indexing in a previous commit. 3497/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 7 Nov 2016 20:37:56 +0000 (13:37 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 7 Nov 2016 20:37:56 +0000 (13:37 -0700)
source/base/exceptions.cc

index d92ef55dd3ace31b3bab7f214a3c6695bb8c0ca1..865b2c9e5e408b234fcaa9a3e45068710127baed 100644 (file)
@@ -73,7 +73,7 @@ ExceptionBase::ExceptionBase ()
 {
 #ifdef DEAL_II_HAVE_GLIBC_STACKTRACE
   for (unsigned int i=0; i<sizeof(raw_stacktrace)/sizeof(raw_stacktrace[0]); ++i)
-    raw_stacktrace[0] = NULL;
+    raw_stacktrace[i] = NULL;
 #endif
 }
 
@@ -92,7 +92,7 @@ ExceptionBase::ExceptionBase (const ExceptionBase &exc)
 {
 #ifdef DEAL_II_HAVE_GLIBC_STACKTRACE
   for (unsigned int i=0; i<sizeof(raw_stacktrace)/sizeof(raw_stacktrace[0]); ++i)
-    raw_stacktrace[0] = NULL;
+    raw_stacktrace[i] = NULL;
 #endif
 }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.