Code

Bug from code-clean (Antony Simmonds - 846311)
authorTon Voon <tonvoon@users.sourceforge.net>
Mon, 24 Nov 2003 14:53:46 +0000 (14:53 +0000)
committerTon Voon <tonvoon@users.sourceforge.net>
Mon, 24 Nov 2003 14:53:46 +0000 (14:53 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@777 f882894a-f735-0410-b71e-b25c423dba1c

plugins/check_hpjd.c

index becbffe26b8029e0a2365bc6423faa6d5f7cb6ca..8d3f4c80fd9afd278c8dbde68f6e40c3a55d7ee8 100644 (file)
@@ -132,7 +132,7 @@ main (int argc, char **argv)
                temp_buffer = strtok (input_buffer, "=");
                temp_buffer = strtok (NULL, "=");
 
-               if (temp_buffer != NULL) {
+               if (temp_buffer == NULL) {
 
                                result = STATE_UNKNOWN;
                                strcpy (errmsg, input_buffer);