summaryrefslogtreecommitdiff
path: root/src/app_convndx.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2021-07-17 15:43:08 +0300
committerTimo Teräs <timo.teras@iki.fi>2021-07-22 15:30:08 +0300
commitb559a81694d8a95ac786104516aebf98d04b84bc (patch)
tree2bd4601015e0d7202c3eb685bf79756022d11b06 /src/app_convndx.c
parent94c5e01038a819e8abd062ed81aec321cdff4aa3 (diff)
downloadapk-tools-b559a81694d8a95ac786104516aebf98d04b84bc.tar.gz
apk-tools-b559a81694d8a95ac786104516aebf98d04b84bc.tar.bz2
apk-tools-b559a81694d8a95ac786104516aebf98d04b84bc.tar.xz
apk-tools-b559a81694d8a95ac786104516aebf98d04b84bc.zip
io: rework apk_istream_get_* to not return erros in blob value
The interface was slightly cumbersome, so replace these functions to return explicit error, and make the return blob a pointer arg.
Diffstat (limited to 'src/app_convndx.c')
-rw-r--r--src/app_convndx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app_convndx.c b/src/app_convndx.c
index 6a4e6d7..eb98b5f 100644
--- a/src/app_convndx.c
+++ b/src/app_convndx.c
@@ -21,7 +21,7 @@ static void convert_index(struct conv_ctx *ctx, struct apk_istream *is)
adb_wo_alloca(&pkginfo, &schema_pkginfo, &ctx->dbi);
- while (!APK_BLOB_IS_NULL(l = apk_istream_get_delim(is, token))) {
+ while (apk_istream_get_delim(is, token, &l) == 0) {
if (l.len < 2) {
adb_wa_append_obj(&ctx->pkgs, &pkginfo);
continue;