Fix SIGSEGV with El-Torito images.

This commit is contained in:
Vreixo Formoso 2008-09-27 12:34:40 +02:00
parent 60ab97b5f4
commit 65252934de
1 changed files with 2 additions and 2 deletions

View File

@ -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;