History

tcc_load_dll fix (Tao Wu)

bellard committed 21 years ago

Commit 5487bc21 parent aee0da01 file · +3 −3Browse files

Unified · Split

tccelf.c+3−3
@@ -2095,7 +2095,7 @@ static int tcc_load_dll(TCCState *s1, int fd, const char *filename, int level) · 2094 unmodified lines
20952095 {
20962096 Elf32_Ehdr ehdr;
20972097 Elf32_Shdr *shdr, *sh, *sh1;
2098− int i, nb_syms, nb_dts, sym_bind, ret;
2098+ int i, j, nb_syms, nb_dts, sym_bind, ret;
20992099 Elf32_Sym *sym, *dynsym;
21002100 Elf32_Dyn *dt, *dynamic;
21012101 unsigned char *dynstr;
@@ -2184,8 +2184,8 @@ static int tcc_load_dll(TCCState *s1, int fd, const char *filename, int level) · 82 unmodified lines
21842184 switch(dt->d_tag) {
21852185 case DT_NEEDED:
21862186 name = dynstr + dt->d_un.d_val;
2187− for(i = 0; i < s1->nb_loaded_dlls; i++) {
2188− dllref = s1->loaded_dlls[i];
2187+ for(j = 0; j < s1->nb_loaded_dlls; j++) {
2188+ dllref = s1->loaded_dlls[j];
21892189 if (!strcmp(name, dllref->name))
21902190 goto already_loaded;
21912191 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t