]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Initialize a member variable of LogStream. 3466/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 4 Nov 2016 20:35:12 +0000 (14:35 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 4 Nov 2016 20:36:23 +0000 (14:36 -0600)
The variable really was never initialized, even though some
output depended on it. I suspect that it just happened to always
be initialized to 'false'. Make this explicit.

source/base/logstream.cc

index 22159aaa6ff5b8f1274dbc4ffdde5744fad37892..c6480577f70ae5ef1cdade5d4b4ce2fbff1e64a4 100644 (file)
@@ -57,6 +57,7 @@ LogStream::LogStream()
   double_threshold(0.),
   float_threshold(0.),
   offset(0),
+  print_thread_id(false),
   old_cerr(0),
   at_newline(true)
 {

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.