From deb6a8e5911bbd588d12a86cd4aa54c58ee2ad56 Mon Sep 17 00:00:00 2001
From: Ton Voon <tonvoon@users.sourceforge.net>
Date: Sun, 16 Feb 2003 08:25:58 +0000
Subject: Coredump if no variable set (reported by Marc C. Poulin)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@327 f882894a-f735-0410-b71e-b25c423dba1c

diff --git a/plugins/check_nt.c b/plugins/check_nt.c
index 65c4e69..b9aae1c 100644
--- a/plugins/check_nt.c
+++ b/plugins/check_nt.c
@@ -505,13 +505,16 @@ int process_arguments(int argc, char **argv){
 
 	}
 
+	if (vars_to_check==CHECK_NONE)
+		return ERROR;
+
 	return OK;
 }
 
 
 void print_usage(void)
 {
-	printf("Usage: %s -H host [-p port] [-v variable] [-w warning] [-c critical] [-l params] [-d SHOWALL] [-t timeout]\n",progname);
+	printf("Usage: %s -H host -v variable [-p port] [-w warning] [-c critical] [-l params] [-d SHOWALL] [-t timeout]\n",progname);
 }
 
 
-- 
cgit v0.10-9-g596f

