summaryrefslogtreecommitdiffstats
path: root/plugins/check_nwstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/check_nwstat.c')
-rw-r--r--plugins/check_nwstat.c4
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) {
141 if (result!=STATE_OK) 141 if (result!=STATE_OK)
142 return result; 142 return result;
143 if (!strcmp(recv_buffer,"-1\n")) 143 if (!strcmp(recv_buffer,"-1\n"))
144 asprintf (&netware_version, "%s", ""); 144 netware_version = strdup("");
145 else { 145 else {
146 recv_buffer[strlen(recv_buffer)-1]=0; 146 recv_buffer[strlen(recv_buffer)-1]=0;
147 asprintf (&netware_version,_("NetWare %s: "),recv_buffer); 147 asprintf (&netware_version,_("NetWare %s: "),recv_buffer);
148 } 148 }
149 } else 149 } else
150 asprintf (&netware_version, "%s", ""); 150 netware_version = strdup("");
151 151
152 152
153 /* check CPU load */ 153 /* check CPU load */