Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177204163
D27246/new/.1793954863.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
925 B
Referenced Files
None
Subscribers
None
D27246/new/.1793954863.diff
View Options
Index: head/cddl/contrib/opensolaris/common/ctf/ctf_create.c
===================================================================
--- head/cddl/contrib/opensolaris/common/ctf/ctf_create.c
+++ head/cddl/contrib/opensolaris/common/ctf/ctf_create.c
@@ -615,7 +615,7 @@
if ((dtd = ctf_alloc(sizeof (ctf_dtdef_t))) == NULL)
return (ctf_set_errno(fp, EAGAIN));
- if (name != NULL && (s = ctf_strdup(name)) == NULL) {
+ if (name != NULL && *name != '\0' && (s = ctf_strdup(name)) == NULL) {
ctf_free(dtd, sizeof (ctf_dtdef_t));
return (ctf_set_errno(fp, EAGAIN));
}
@@ -1217,7 +1217,7 @@
if ((dmd = ctf_alloc(sizeof (ctf_dmdef_t))) == NULL)
return (ctf_set_errno(ctb->ctb_file, EAGAIN));
- if (name != NULL && (s = ctf_strdup(name)) == NULL) {
+ if (name != NULL && *name != '\0' && (s = ctf_strdup(name)) == NULL) {
ctf_free(dmd, sizeof (ctf_dmdef_t));
return (ctf_set_errno(ctb->ctb_file, EAGAIN));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 6, 8:47 AM (13 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41480067
Default Alt Text
D27246/new/.1793954863.diff (925 B)
Attached To
Mode
D27246: Fix dtrace symbol resolution for anonymous structs/unions
Attached
Detach File
Event Timeline