Fix: mkclass crashes when called without arguments

fixes #7617
This commit is contained in:
Gunnar Beutner 2014-11-08 13:41:08 +01:00
parent e1c95d4fa0
commit 8bd091fef0
1 changed files with 1 additions and 1 deletions

View 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;
}