aboutsummaryrefslogtreecommitdiff
path: root/src/delivery.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/delivery.c')
-rw-r--r--src/delivery.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/delivery.c b/src/delivery.c
index a8cdc22..f9907fc 100644
--- a/src/delivery.c
+++ b/src/delivery.c
@@ -1552,7 +1552,8 @@ void delivery_defer_packages(struct Delivery *ctx, int type) {
if (ctx->tests[x].name) {
if (strstr(name, ctx->tests[x].name)) {
guard_free(ctx->tests[x].version);
- if (spec_end) {
+ if (spec_begin && spec_end) {
+ *spec_begin = '\0';
ctx->tests[x].version = strdup(spec_end);
} else {
ctx->tests[x].version = strdup("HEAD");