summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2002-10-18 04:41:05 (GMT)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2002-10-18 04:41:05 (GMT)
commitc8d2aa6221dfc20e76e263cde513beeba88f6d46 (patch)
tree9d6cc8d3db723017b74f992cabd738a5e8e61103
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
-rw-r--r--plugins/utils.c2
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 *
416strscat (char *dest, const char *src) 416strscat (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