diff options
-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 */ |