diff options
author | Carlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au> | 2012-07-09 17:30:34 +1000 |
---|---|---|
committer | Carlo Zancanaro <carlo@pc-4w14-0.cs.usyd.edu.au> | 2012-07-09 17:30:34 +1000 |
commit | b4630d5ba7cc93bd1a3bc9e4dcf6f5ef612b3d3e (patch) | |
tree | b84bbc3e702d7e27ffc7a1500e8f7c5aed032951 /impl | |
parent | 5cdc743d491a04ee0446bd757cedb4c7b6bc585f (diff) |
Simple little bug.
Diffstat (limited to 'impl')
-rw-r--r-- | impl/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/impl/main.cpp b/impl/main.cpp index 9e34071..726fa3e 100644 --- a/impl/main.cpp +++ b/impl/main.cpp @@ -116,7 +116,7 @@ int main (int argc, char* argv[]) { char* arg = argv[4]; char* str = strtok(arg, ","); do { - if (loggers[str]) + if (str && loggers[str]) loggers[str]->enabled(true); } while ((str = strtok(NULL, ",")) != NULL); } |