Skip to content

Commit

Permalink
tools: substitute NULL for 0
Browse files Browse the repository at this point in the history
Avoids having to include stddef.h just for this.
Weirdly, clang did not complain but GCC did.
  • Loading branch information
matheusmoreira committed Nov 19, 2023
1 parent 19428ed commit 924c1c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/tools/create-lone-segment.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ static void set_lone_entry(struct elf *elf)
{
unsigned char *table = elf->program_header_table.memory.pointer;
size_t entry_count = elf->program_header_table.entry_count;
Elf32_Phdr *pt_phdr32 = NULL, *phdr32;
Elf64_Phdr *pt_phdr64 = NULL, *phdr64;
Elf32_Phdr *pt_phdr32 = 0, *phdr32;
Elf64_Phdr *pt_phdr64 = 0, *phdr64;
size_t base;
size_t i;

Expand Down

0 comments on commit 924c1c3

Please sign in to comment.