Skip to content

Commit

Permalink
lazy initialization depends on null values for name and data pointers.
Browse files Browse the repository at this point in the history
  • Loading branch information
ccurtsinger committed Jun 23, 2014
1 parent 004ed26 commit a4e5998
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elf/elf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ struct section::impl

const elf f;
Shdr<> hdr;
const char *name;
const char *name = nullptr;
size_t name_len;
const void *data;
const void *data = nullptr;
};

section::section(const elf &f, const void *hdr)
Expand Down

0 comments on commit a4e5998

Please sign in to comment.