summaryrefslogtreecommitdiff
path: root/src/utils.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-01 05:50:07 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-01 05:50:07 -0600
commit9ec9cdf41e5176f7fcf06da5f75593d9ba3d4028 (patch)
treef9536d691ef7c5abea82349a0b58a5f5e3cf8e33 /src/utils.cc
parent944e580825f0d9ce060b6dcdffe8990b6c2cca20 (diff)
downloadfork-ledger-9ec9cdf41e5176f7fcf06da5f75593d9ba3d4028.tar.gz
fork-ledger-9ec9cdf41e5176f7fcf06da5f75593d9ba3d4028.tar.bz2
fork-ledger-9ec9cdf41e5176f7fcf06da5f75593d9ba3d4028.zip
Started writing Python unit tests
Diffstat (limited to 'src/utils.cc')
-rw-r--r--src/utils.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utils.cc b/src/utils.cc
index 09526267..eb1d8009 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -612,8 +612,7 @@ optional<boost::regex> _log_category_re;
struct __maybe_enable_debugging {
__maybe_enable_debugging() {
- const char * p = std::getenv("LEDGER_DEBUG");
- if (p != NULL) {
+ if (const char * p = std::getenv("LEDGER_DEBUG")) {
_log_level = LOG_DEBUG;
_log_category = p;
}