mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-28 04:35:40 -04:00
Attempting to fix a reported segfault (1055054)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@932 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
a6b6037235
commit
c4000f5d6c
1 changed files with 2 additions and 2 deletions
|
|
@ -141,13 +141,13 @@ main(int argc, char **argv) {
|
|||
if (result!=STATE_OK)
|
||||
return result;
|
||||
if (!strcmp(recv_buffer,"-1\n"))
|
||||
asprintf (&netware_version, "%s", "");
|
||||
netware_version = strdup("");
|
||||
else {
|
||||
recv_buffer[strlen(recv_buffer)-1]=0;
|
||||
asprintf (&netware_version,_("NetWare %s: "),recv_buffer);
|
||||
}
|
||||
} else
|
||||
asprintf (&netware_version, "%s", "");
|
||||
netware_version = strdup("");
|
||||
|
||||
|
||||
/* check CPU load */
|
||||
|
|
|
|||
Loading…
Reference in a new issue