mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-03-24 03:13:05 -04:00
handle null src in strscat
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@140 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
b8554503be
commit
c8d2aa6221
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue