From c4000f5d6c910828e26aca1566d8e1587fece17d Mon Sep 17 00:00:00 2001
From: Matthew Kent <mattkent@users.sourceforge.net>
Date: Wed, 24 Nov 2004 04:35:40 +0000
Subject: 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

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) {
 		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 */
-- 
cgit v0.10-9-g596f

