summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-04-19 10:18:40 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-04-19 10:18:40 (EDT)
commit25978e5d7ffe57a9d05f0693ca7e8bd3c4cbbfd2 (patch)
tree9d27e1c76b83a911036ffec9bb5df34be9d6f322
parent0e3b97a9d7b6ae77b98efee57cf9119d684f2be9 (diff)
opk: Initialize seek_name.found
-rw-r--r--src/opk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/opk.c b/src/opk.c
index f32b0a8..cdb3f58 100644
--- a/src/opk.c
+++ b/src/opk.c
@@ -90,8 +90,9 @@ opkg_opk_opk_init_outer(const char *file_name)
}
/* Check package version. */
- seek_name.name = "debian-binary";
- seek_name.next = NULL;
+ seek_name.name = "debian-binary";
+ seek_name.found = 0;
+ seek_name.next = NULL;
if (opkg_opk_ustar_seek(opk->outer_ustar, &seek_name) == OPKG_OPK_ERROR)
{
fputs("Error: Failed to find \"debian-binary\" in archive\n",