Module: check_mk
Branch: master
Commit: 4dbaf3a37329f6a8c38fd71c8fadacead7985d81
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4dbaf3a37329f6…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Oct 23 16:10:55 2015 +0200
Cherry-picked bug-fix from strutil.c into strutil.cc.
---
livestatus/src/strutil.cc | 3 +++
1 file changed, 3 insertions(+)
diff --git a/livestatus/src/strutil.cc b/livestatus/src/strutil.cc
index 0aae7b6..e8473e2 100644
--- a/livestatus/src/strutil.cc
+++ b/livestatus/src/strutil.cc
@@ -91,6 +91,9 @@ char *next_token(char **c, char delim)
no tokens has been found */
char *save_next_token(char **c, char delim)
{
+ if (!*c)
+ return (char *)"";
+
char *result = next_token(c, delim);
if (result == 0)
return (char *)"";