[Nagiosplug-checkins] CVS: nagiosplug/plugins utils.c,1.6,1.7

Karl DeBisschop kdebisschop at users.sourceforge.net
Thu Oct 17 21:42:02 CEST 2002


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory usw-pr-cvs1:/tmp/cvs-serv11427

Modified Files:
	utils.c 
Log Message:
handle null src in strscat


Index: utils.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/utils.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** utils.c	16 Oct 2002 21:32:33 -0000	1.6
--- utils.c	18 Oct 2002 04:41:05 -0000	1.7
***************
*** 417,420 ****
--- 417,422 ----
  {
  
+ 	if (dest == NULL)
+ 		return src;
  	if (src != NULL)
  		asprintf (&dest, "%s%s", dest, src);





More information about the Commits mailing list