Просмотр исходного кода

type variable not cleared in Sol 10 (Kyle Tucker)

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1503 f882894a-f735-0410-b71e-b25c423dba1c
Ton Voon 19 лет назад
Родитель
Сommit
3834b3262a
2 измененных файлов с 5 добавлено и 0 удалено
  1. 1 0
      THANKS.in
  2. 4 0
      plugins/check_snmp.c

+ 1 - 0
THANKS.in

@@ -194,3 +194,4 @@ Christian Mies
 Andreas Behal
 Andreas Behal
 O'Shaughnessy Evans
 O'Shaughnessy Evans
 Aravind Gottipati
 Aravind Gottipati
+Kyle Tucker

+ 4 - 0
plugins/check_snmp.c

@@ -254,6 +254,10 @@ main (int argc, char **argv)
 		}
 		}
 
 
 		/* We strip out the datatype indicator for PHBs */
 		/* We strip out the datatype indicator for PHBs */
+
+		/* Clean up type array - Sol10 does not necessarily zero it out */
+		bzero(type, sizeof(type));
+
 		if (strstr (response, "Gauge: "))
 		if (strstr (response, "Gauge: "))
 			show = strstr (response, "Gauge: ") + 7;
 			show = strstr (response, "Gauge: ") + 7;
 		else if (strstr (response, "Gauge32: "))
 		else if (strstr (response, "Gauge32: "))