summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 9c52e66f..8f25574b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -51,7 +51,7 @@ int main(int argc, char** argv) {
ignoreSudo = true;
} else if (it->compare("-c") == 0 || it->compare("--config") == 0) {
- if (std::next(it)->c_str() == nullptr) {
+ if (std::next(it) == args.end()) {
help();
return 1;
}