aboutsummaryrefslogtreecommitdiff
path: root/src/deliverable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/deliverable.c')
-rw-r--r--src/deliverable.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/deliverable.c b/src/deliverable.c
index 6b70912..28c8abc 100644
--- a/src/deliverable.c
+++ b/src/deliverable.c
@@ -268,6 +268,11 @@ int delivery_init_platform(struct Delivery *ctx) {
return -1;
}
+ ctx->system.platform = calloc(DELIVERY_PLATFORM_MAX, sizeof(*ctx->system.platform));
+ for (size_t i = 0; i < DELIVERY_PLATFORM_MAX; i++) {
+ ctx->system.platform[i] = calloc(DELIVERY_PLATFORM_MAXLEN, sizeof(*ctx->system.platform[0]));
+ }
+
ctx->system.arch = strdup(uts.machine);
if (!ctx->system.arch) {
// memory error