summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-04-28 21:13:08 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-04-28 21:15:53 (EDT)
commit2b2d66c0e3d0f65cd56f0e3b3a3662ee05608558 (patch)
tree4194ae62225c7e9389045131c28d69fe52e73d43 /src
parentf90182f0d9a495ac2bd6a5e56802e7f0a9e7bb29 (diff)
opk: Improve loop control
Diffstat (limited to 'src')
-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;
}