svn commit: r289810 - stable/9/sys/cddl/dev/sdt
Andriy Gapon
avg at FreeBSD.org
Fri Oct 23 08:16:12 UTC 2015
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;
More information about the svn-src-stable-9
mailing list