aboutsummaryrefslogtreecommitdiff
path: root/plugins/utils.c
diff options
context:
space:
mode:
authorGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2002-10-18 04:41:05 +0000
committerGravatar Karl DeBisschop <kdebisschop@users.sourceforge.net> 2002-10-18 04:41:05 +0000
commitc8d2aa6221dfc20e76e263cde513beeba88f6d46 (patch)
tree9d6cc8d3db723017b74f992cabd738a5e8e61103 /plugins/utils.c
parentb8554503be5d86b46e3e6d43aa40e23570f8ef59 (diff)
downloadmonitoring-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/utils.c')
-rw-r--r--plugins/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/utils.c b/plugins/utils.c
index 0d1729e0..697b5a66 100644
--- a/plugins/utils.c
+++ b/plugins/utils.c
@@ -416,6 +416,8 @@ char *
strscat (char *dest, const char *src)
{
+ if (dest == NULL)
+ return src;
if (src != NULL)
asprintf (&dest, "%s%s", dest, src);