Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Oct 2015 08:16:10 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r289810 - stable/9/sys/cddl/dev/sdt
Message-ID:  <201510230816.t9N8GAHI084832@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Fri Oct 23 08:16:10 2015
New Revision: 289810
URL: https://svnweb.freebsd.org/changeset/base/289810

Log:
  MFC r288363: std: it is important that func name is never an empty string

Modified:
  stable/9/sys/cddl/dev/sdt/sdt.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/cddl/dev/sdt/sdt.c
==============================================================================
--- stable/9/sys/cddl/dev/sdt/sdt.c	Fri Oct 23 08:15:53 2015	(r289809)
+++ stable/9/sys/cddl/dev/sdt/sdt.c	Fri Oct 23 08:16:10 2015	(r289810)
@@ -169,6 +169,8 @@ sdt_create_probe(struct sdt_probe *probe
 	 * in the C compiler, so we have to respect const vs non-const.
 	 */
 	strlcpy(func, probe->func, sizeof(func));
+	if (func[0] == '\0')
+		strcpy(func, "none");
 
 	from = probe->name;
 	to = name;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510230816.t9N8GAHI084832>