summaryrefslogtreecommitdiff
path: root/src/info.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2011-01-01 12:11:49 +0200
committerTimo Teräs <timo.teras@iki.fi>2011-01-01 12:11:49 +0200
commitb01d144c6922384921f808b190430ad7aa114010 (patch)
treeeb50d54cd075ee7ae0bd16617924afe80708e626 /src/info.c
parentaae0a563edc21030c08fd47e30e78eda22183027 (diff)
downloadapk-tools-b01d144c6922384921f808b190430ad7aa114010.tar.gz
apk-tools-b01d144c6922384921f808b190430ad7aa114010.tar.bz2
apk-tools-b01d144c6922384921f808b190430ad7aa114010.tar.xz
apk-tools-b01d144c6922384921f808b190430ad7aa114010.zip
various: fix breakage from converting dependency versions to atoms
The version now needs to be initialized atom always, since it's dereferenced in various places.
Diffstat (limited to 'src/info.c')
-rw-r--r--src/info.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/info.c b/src/info.c
index 2a28a93..1b936f0 100644
--- a/src/info.c
+++ b/src/info.c
@@ -115,6 +115,7 @@ static int info_who_owns(struct info_ctx *ctx, struct apk_database *db,
if (apk_verbosity < 1) {
dep = (struct apk_dependency) {
.name = pkg->name,
+ .version = apk_blob_atomize(APK_BLOB_NULL),
.result_mask = APK_DEPMASK_REQUIRE,
};
apk_deps_add(&deps, &dep);