]> granicus.if.org Git - icinga2/commitdiff
Fix: mkclass crashes when called without arguments
authorGunnar Beutner <gunnar.beutner@netways.de>
Sat, 8 Nov 2014 12:41:08 +0000 (13:41 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Sat, 8 Nov 2014 12:41:08 +0000 (13:41 +0100)
fixes #7617

tools/mkclass/mkclass.cpp

index 24666f61f290e4ebbf5b40daa0ae1c22fcab9e99..b66b63b2e90722124893e7cbe517c9429d0feee5 100644 (file)
@@ -24,7 +24,7 @@ using namespace icinga;
 
 int main(int argc, char **argv)
 {
-       if (argc < 1) {
+       if (argc < 2) {
                std::cerr << "Syntax: " << argv[0] << " <file>" << std::endl;
                return 1;
        }