diff options
-rw-r--r-- | src/opk.c | 16 |
1 files changed, 6 insertions, 10 deletions
@@ -169,21 +169,17 @@ _opkg_opk_opk_seek(struct opkg_opk_ustar *ustar, continue; /* Previously found this member */ } if (strcmp(member->name, seek_name->name) == 0) { - if (found == 0) { - seek_name->found = 1; - found = 1; - continue; - } + seek_name->found = 1; + found = 1; + break; } if (member->name[0] == '.' && member->name[1] == '/' && strcmp(member->name + 2, seek_name->name) == 0) { - if (found == 0) { - seek_name->found = 1; - found = 1; - continue; - } + seek_name->found = 1; + found = 1; + break; } found_all = 0; } |