summaryrefslogtreecommitdiff
path: root/src/fetch.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/fetch.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/fetch.c')
-rw-r--r--src/fetch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fetch.c b/src/fetch.c
index 9c32a11..b67a189 100644
--- a/src/fetch.c
+++ b/src/fetch.c
@@ -178,6 +178,7 @@ static int fetch_main(void *ctx, struct apk_database *db, int argc, char **argv)
for (i = 0; i < argc; i++) {
struct apk_dependency dep = (struct apk_dependency) {
.name = apk_db_get_name(db, APK_BLOB_STR(argv[i])),
+ .version = apk_blob_atomize(APK_BLOB_NULL),
.result_mask = APK_DEPMASK_REQUIRE,
};