Use NULL instead of 0 for pointers.

MFC after:	2 weeks.
This commit is contained in:
Marcelo Araujo 2016-05-16 01:12:56 +00:00
parent 26d0a72296
commit 1dcace5ba0

View File

@ -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';