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