From 65252934de8662afaec599626a4b191ddff4817e Mon Sep 17 00:00:00 2001 From: Vreixo Formoso Date: Sat, 27 Sep 2008 12:34:40 +0200 Subject: [PATCH] Fix SIGSEGV with El-Torito images. --- libisofs/eltorito.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libisofs/eltorito.c b/libisofs/eltorito.c index 860cf25..3e0248e 100644 --- a/libisofs/eltorito.c +++ b/libisofs/eltorito.c @@ -726,8 +726,8 @@ int el_torito_catalog_file_src_create(Ecma119Image *target, IsoFileSrc **src) /* fill fields */ file->prev_img = 0; /* TODO allow copy of old img catalog???? */ - file->nsections = 0; /* to be filled later */ - file->sections = NULL; + file->nsections = 1; + file->sections = calloc(1, sizeof(struct iso_file_section)); file->sort_weight = 1000; /* slightly high */ file->stream = stream;