summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2020-10-07 21:16:13 +0300
committerTimo Teräs <timo.teras@iki.fi>2020-10-07 21:16:35 +0300
commit5f66b618effe48b8a4ab295b067e379e49518346 (patch)
treee75fa4b1eddfc221628067e2d593f699ba4e1e44 /src/commit.c
parent90137499afdecdbcd977805786263b6f883680e7 (diff)
downloadapk-tools-5f66b618effe48b8a4ab295b067e379e49518346.tar.gz
apk-tools-5f66b618effe48b8a4ab295b067e379e49518346.tar.bz2
apk-tools-5f66b618effe48b8a4ab295b067e379e49518346.tar.xz
apk-tools-5f66b618effe48b8a4ab295b067e379e49518346.zip
various changes to make clang not give warnings
Diffstat (limited to 'src/commit.c')
-rw-r--r--src/commit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/commit.c b/src/commit.c
index 5a72ce4..fe9b1ad 100644
--- a/src/commit.c
+++ b/src/commit.c
@@ -7,6 +7,7 @@
* SPDX-License-Identifier: GPL-2.0-only
*/
+#include <assert.h>
#include <limits.h>
#include <stdint.h>
#include <unistd.h>
@@ -264,6 +265,7 @@ int apk_solver_commit_changeset(struct apk_database *db,
off_t humanized, size_diff = 0;
int r, errors = 0;
+ assert(world);
if (apk_db_check_world(db, world) != 0) {
apk_error("Not committing changes due to missing repository tags. "
"Use --force-broken-world to override.");