mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
syswrap-linux.c (sys_bpf): Compare raw_tracepoint.name against 0, not NULL
raw_tracepoint.name is a __vki_u64 (even on 32bit arches), so compare against zero, not NULL, to avoid a gcc warning.
This commit is contained in:
parent
61ddbc1fc3
commit
438d5e956d
@ -12938,7 +12938,7 @@ PRE(sys_bpf)
|
||||
break;
|
||||
}
|
||||
/* Name is limited to 128 characters in kernel/bpf/syscall.c. */
|
||||
if (attr->raw_tracepoint.name != NULL)
|
||||
if (attr->raw_tracepoint.name != 0)
|
||||
pre_asciiz_str(tid, attr->raw_tracepoint.name, 128,
|
||||
"bpf(attr->raw_tracepoint.name)");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user