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
This commit is contained in:
Ton Voon 2006-10-19 19:13:45 +00:00
parent 58ea98cc81
commit 3834b3262a
2 changed files with 5 additions and 0 deletions

View file

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

View file

@ -254,6 +254,10 @@ main (int argc, char **argv)
}
/* 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: "))
show = strstr (response, "Gauge: ") + 7;
else if (strstr (response, "Gauge32: "))