Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146159048
D27246.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
925 B
Referenced Files
None
Subscribers
None
D27246.id.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
Sun, Mar 1, 8:05 AM (14 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29105089
Default Alt Text
D27246.id.diff (925 B)
Attached To
Mode
D27246: Fix dtrace symbol resolution for anonymous structs/unions
Attached
Detach File
Event Timeline
Log In to Comment