summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/opk.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/opk.c b/src/opk.c
index b22938c..3090add 100644
--- a/src/opk.c
+++ b/src/opk.c
@@ -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;
}