summaryrefslogtreecommitdiff
path: root/src/upgrade.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-09-09 22:00:49 +0300
committerTimo Teräs <timo.teras@iki.fi>2011-09-09 22:00:49 +0300
commitb42421722ea94ba813f6a7a30f344a6792a6bb45 (patch)
tree5f9b4c9cd3d41bd428063df2d2e513e5bf577343 /src/upgrade.c
parent7d5cd2c8a0052a7446515f90d3d0ea5cc2e93efe (diff)
downloadapk-tools-b42421722ea94ba813f6a7a30f344a6792a6bb45.tar.gz
apk-tools-b42421722ea94ba813f6a7a30f344a6792a6bb45.tar.bz2
apk-tools-b42421722ea94ba813f6a7a30f344a6792a6bb45.tar.xz
apk-tools-b42421722ea94ba813f6a7a30f344a6792a6bb45.zip
upgrade: fix context allocation
Diffstat (limited to 'src/upgrade.c')
-rw-r--r--src/upgrade.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/upgrade.c b/src/upgrade.c
index 5afccfd..e1f44bd 100644
--- a/src/upgrade.c
+++ b/src/upgrade.c
@@ -96,6 +96,7 @@ static struct apk_applet apk_upgrade = {
.help = "Upgrade (or downgrade with -a) the currently installed "
"packages to versions available in repositories.",
.open_flags = APK_OPENF_WRITE,
+ .context_size = sizeof(struct upgrade_ctx),
.num_options = ARRAY_SIZE(upgrade_options),
.options = upgrade_options,
.parse = upgrade_parse,