summaryrefslogtreecommitdiff
path: root/impl
diff options
context:
space:
mode:
Diffstat (limited to 'impl')
-rw-r--r--impl/main.cpp2
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);
}