diff options
author | Patrick 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) |
commit | 2b2d66c0e3d0f65cd56f0e3b3a3662ee05608558 (patch) | |
tree | 4194ae62225c7e9389045131c28d69fe52e73d43 | |
parent | f90182f0d9a495ac2bd6a5e56802e7f0a9e7bb29 (diff) |
opk: Improve loop control
-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; } |