diff options
author | Matthew Kent <mattkent@users.sourceforge.net> | 2004-11-24 04:35:40 +0000 |
---|---|---|
committer | Matthew Kent <mattkent@users.sourceforge.net> | 2004-11-24 04:35:40 +0000 |
commit | c4000f5d6c910828e26aca1566d8e1587fece17d (patch) | |
tree | f045eca8b30315d145cc68ac48fbd2a6f522ab15 /plugins | |
parent | a6b60372352dab2ed7c2e84e3f92648611b7df12 (diff) | |
download | monitoring-plugins-c4000f5d6c910828e26aca1566d8e1587fece17d.tar.gz |
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
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_nwstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c index 765a4fb6..46bc7e90 100644 --- a/plugins/check_nwstat.c +++ b/plugins/check_nwstat.c @@ -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 */ |