From caa8bd6423e2d0d1b4e72c150e80b9c6a9e1b7fe Mon Sep 17 00:00:00 2001 From: Thomas Guyot-Sionnest Date: Wed, 19 Nov 2008 06:45:18 +0000 Subject: Bulk EOL cleanup $ git diff --ignore-space-change|diffstat 0 files changed git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2087 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/popen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/popen.c') diff --git a/plugins/popen.c b/plugins/popen.c index df00ebeb..a27aecc9 100644 --- a/plugins/popen.c +++ b/plugins/popen.c @@ -140,7 +140,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 ("%s\n", _("Could not malloc argv array in popen()")); return NULL; @@ -165,7 +165,7 @@ spopen (const char *cmdstring) } else if (strcspn(str,"'") < strcspn (str, " \t\r\n")) { /* handle --option='foo bar' strings */ - tmp = str + strcspn(str, "'") + 1; + tmp = str + strcspn(str, "'") + 1; if (!strstr (tmp, "'")) return NULL; /* balanced? */ tmp += strcspn(tmp,"'") + 1; -- cgit v1.2.3-74-g34f1