File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ int elf_loadctors(FAR struct elf_loadinfo_s *loadinfo)
99
99
*/
100
100
101
101
binfo ("elf_findsection .ctors section failed: %d\n" , ctoridx );
102
- return ret == - ENOENT ? OK : ret ;
102
+ return ctoridx == - ENOENT ? OK : ctoridx ;
103
103
}
104
104
105
105
/* Now we can get a pointer to the .ctor section in the section header
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ int elf_loaddtors(FAR struct elf_loadinfo_s *loadinfo)
100
100
*/
101
101
102
102
binfo ("elf_findsection .dtors section failed: %d\n" , dtoridx );
103
- return ret == - ENOENT ? OK : ret ;
103
+ return dtoridx == - ENOENT ? OK : dtoridx ;
104
104
}
105
105
106
106
/* Now we can get a pointer to the .dtor section in the section header
You can’t perform that action at this time.
0 commit comments