Skip to content

Commit

Permalink
chore: remove unnecessary if block
Browse files Browse the repository at this point in the history
Signed-off-by: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
RaisinTen committed Feb 28, 2023
1 parent e08d9e4 commit 19ab453
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions postject-api.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,6 @@ struct postject__dl_iterate_phdr_data {
static int postject__dl_iterate_phdr_callback(struct dl_phdr_info* info,
size_t size,
void* opaque) {
/*
The first object visited by the callback is the main program.
For the main program, the dlpi_name field will be an empty string.
*/
if (info->dlpi_name == NULL || strcmp(info->dlpi_name, "") != 0) {
// skip to the next shared object
return 0;
}

struct postject__dl_iterate_phdr_data* data =
(struct postject__dl_iterate_phdr_data*)opaque;

Expand Down

0 comments on commit 19ab453

Please sign in to comment.