diff --git a/src/host.cpp b/src/host.cpp index ee18d7e5f..fce0c920a 100644 --- a/src/host.cpp +++ b/src/host.cpp @@ -345,7 +345,7 @@ static bool parse_opts_set_logging(int argc, char *argv[]) getopt_long(argc, argv, optstring, getopt_options, nullptr); switch (ch) { case 'V': - if (optarg == nullptr) { + if (optarg != nullptr) { log_opt = optarg; } else { logging_lvl += 1;