summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2022-08-10 14:42:17 +0200
committerGitHub <noreply@github.com>2022-08-10 14:42:17 +0200
commit3d4038ad273524a32bf892921e9d1a8f0bc609d4 (patch)
tree97b1b58ea0c938eae047da84a0e70b32daf561e1
parent636f29faa682153d2c09cd4260365afedfa115ad (diff)
parenta972e0f1637e8a2ec2ce70f02c0154adfef59f73 (diff)
downloadATCD-3d4038ad273524a32bf892921e9d1a8f0bc609d4.tar.gz
Merge pull request #1895 from jwillemsen/jwi-acedebug
Changed internal debug_ flag to bool and initialise it to false
-rw-r--r--ACE/ace/ACE.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/ACE/ace/ACE.cpp b/ACE/ace/ACE.cpp
index 12d6e34e0cd..565b36876f0 100644
--- a/ACE/ace/ACE.cpp
+++ b/ACE/ace/ACE.cpp
@@ -48,10 +48,9 @@ namespace ACE
// Are we debugging ACE?
// Keeps track of whether we're in some global debug mode.
- char debug_;
+ bool debug_ = false;
}
-
int
ACE::out_of_handles (int error)
{
@@ -167,7 +166,7 @@ ACE::debug ()
//FUZZ: disable check_for_ace_log_categories
static const char *debug = ACE_OS::getenv ("ACE_DEBUG");
//FUZZ: enable check_for_ace_log_categories
- return (ACE::debug_ != 0) ? ACE::debug_ : (debug != 0 ? (*debug != '0') : false);
+ return (ACE::debug_) ? ACE::debug_ : (debug != 0 ? (*debug != '0') : false);
}
void