Browse Source

fix: added brackets to else

root 2 years ago
parent
commit
2479c5e14b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      plugins/check_snmp.c

+ 2 - 2
plugins/check_snmp.c

@@ -489,14 +489,14 @@ main (int argc, char **argv)
 			show = strpbrk (show, "-0123456789");
 			is_ticks = 1;
 		}
-		else
+		else {
 			show = response;
 			for (int i = 0; i < strlen(show); i++){
 				if (isspace(show[i])){
 					die (STATE_UNKNOWN,_("No valid data returned (%s)\n"), show);
 				}
 			}
-
+		}
 		iresult = STATE_DEPENDENT;
 
 		/* Process this block for numeric comparisons */