diff options
Diffstat (limited to 'plugins/t')
0 files changed, 0 insertions, 0 deletions
diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c index 765a4fb..46bc7e9 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 */ |