From 234481163fc3caf0cb8b14f601f0f9f1458f97f5 Mon Sep 17 00:00:00 2001 From: Benoit Mortier Date: Thu, 2 Dec 2004 16:51:25 +0000 Subject: More internationalization work new usage4 function to permit localisation of think like check_ssh: xxxxx git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@979 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/popen.c | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/popen.c') diff --git a/plugins/popen.c b/plugins/popen.c index f05fe974..94ad583f 100644 --- a/plugins/popen.c +++ b/plugins/popen.c @@ -112,6 +112,7 @@ spopen (const char *cmdstring) /* there cannot be more args than characters */ argc = strlen (cmdstring) + 1; /* add 1 for NULL termination */ argv = malloc (sizeof(char*)*argc); + if (argv == NULL) { printf ("Could not malloc argv array in popen()\n"); return NULL; -- cgit v1.2.3-74-g34f1