From: Gunnar Beutner Date: Sat, 8 Nov 2014 12:41:08 +0000 (+0100) Subject: Fix: mkclass crashes when called without arguments X-Git-Tag: v2.2.0~92 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8bd091fef0bbd222adaa77347f9a3316e21471c7;p=icinga2 Fix: mkclass crashes when called without arguments fixes #7617 --- diff --git a/tools/mkclass/mkclass.cpp b/tools/mkclass/mkclass.cpp index 24666f61f..b66b63b2e 100644 --- a/tools/mkclass/mkclass.cpp +++ b/tools/mkclass/mkclass.cpp @@ -24,7 +24,7 @@ using namespace icinga; int main(int argc, char **argv) { - if (argc < 1) { + if (argc < 2) { std::cerr << "Syntax: " << argv[0] << " " << std::endl; return 1; }