Use NULL instead of 0 for pointers.
MFC after: 2 weeks.
This commit is contained in:
parent
26d0a72296
commit
1dcace5ba0
@ -494,7 +494,7 @@ parse_entry(struct mod_metadata *md, const char *cval,
|
||||
|
||||
ptr = *(char **)(walker + elt->pe_offset);
|
||||
buffer[0] = '\0';
|
||||
if (ptr != 0) {
|
||||
if (ptr != NULL) {
|
||||
EF_SEG_READ(ef, (Elf_Off)ptr,
|
||||
sizeof(buffer), buffer);
|
||||
buffer[sizeof(buffer) - 1] = '\0';
|
||||
|
Loading…
x
Reference in New Issue
Block a user