Skip to content

Commit 19ab453

Browse files
committed
chore: remove unnecessary if block
Signed-off-by: Darshan Sen <[email protected]>
1 parent e08d9e4 commit 19ab453

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

postject-api.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,6 @@ struct postject__dl_iterate_phdr_data {
5454
static int postject__dl_iterate_phdr_callback(struct dl_phdr_info* info,
5555
size_t size,
5656
void* opaque) {
57-
/*
58-
The first object visited by the callback is the main program.
59-
For the main program, the dlpi_name field will be an empty string.
60-
*/
61-
if (info->dlpi_name == NULL || strcmp(info->dlpi_name, "") != 0) {
62-
// skip to the next shared object
63-
return 0;
64-
}
65-
6657
struct postject__dl_iterate_phdr_data* data =
6758
(struct postject__dl_iterate_phdr_data*)opaque;
6859

0 commit comments

Comments
 (0)