Skip to contentSkip to conversation

Fix typo in conditional

PATCH In review Kris Van Hees 2 participants 2 messages Aug 28

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix typo in conditional

---
 libdtrace/dt_module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libdtrace/dt_module.c +1 -1
index 00978911..b5c8d319 100644
@@ -200,7 +200,7 @@ dt_module_init_elf(dtrace_hdl_t *dtp, dt_module_t *dmp)
 	int fd, err, bits;
 	size_t shstrs;
 
-	if (!dmp->dm_file[0] == '\0') {
+	if (dmp->dm_file[0] == '\0') {
 		dt_dprintf("failed to open ELF file for module %s: "
 		    "no file name known\n", dmp->dm_name);
 		return dt_set_errno(dtp, EDT_NOTLOADED);
Signature · 1 line
2.52.0
Reviewed-by on v1 1/1
#1 lore raw

thanks Kris,

Quoted 26 lines · Kris Van Hees via DTrace-devel
---
 libdtrace/dt_module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libdtrace/dt_module.c +1 -1
index 00978911..b5c8d319 100644
@@ -200,7 +200,7 @@ dt_module_init_elf(dtrace_hdl_t *dtp, dt_module_t *dmp)
 	int fd, err, bits;
 	size_t shstrs;
 
-	if (!dmp->dm_file[0] == '\0') {
+	if (dmp->dm_file[0] == '\0') {
 		dt_dprintf("failed to open ELF file for module %s: "
 		    "no file name known\n", dmp->dm_name);
 		return dt_set_errno(dtp, EDT_NOTLOADED);
Signature · 7 lines
2.52.0


_______________________________________________
DTrace-devel mailing list
[email protected]
https://oss.oracle.com/mailman/listinfo/dtrace-devel