diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-10-18 04:41:05 (GMT) |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2002-10-18 04:41:05 (GMT) |
commit | c8d2aa6221dfc20e76e263cde513beeba88f6d46 (patch) | |
tree | 9d6cc8d3db723017b74f992cabd738a5e8e61103 /plugins | |
parent | b8554503be5d86b46e3e6d43aa40e23570f8ef59 (diff) | |
download | monitoring-plugins-c8d2aa6221dfc20e76e263cde513beeba88f6d46.tar.gz |
handle null src in strscat
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@140 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/utils.c b/plugins/utils.c index 0d1729e..697b5a6 100644 --- a/plugins/utils.c +++ b/plugins/utils.c | |||
@@ -416,6 +416,8 @@ char * | |||
416 | strscat (char *dest, const char *src) | 416 | strscat (char *dest, const char *src) |
417 | { | 417 | { |
418 | 418 | ||
419 | if (dest == NULL) | ||
420 | return src; | ||
419 | if (src != NULL) | 421 | if (src != NULL) |
420 | asprintf (&dest, "%s%s", dest, src); | 422 | asprintf (&dest, "%s%s", dest, src); |
421 | 423 | ||