Use NULL instead of 0 for pointers.
MFC after: 2 weeks.
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user