Bug fix: Joliet writer should be only created when Joliet is enabled.

This commit is contained in:
Vreixo Formoso 2008-01-08 19:33:17 +01:00
parent 7bb4eaf46d
commit 747bed11b8

View File

@ -898,9 +898,11 @@ int ecma119_image_new(IsoImage *src, Ecma119WriteOpts *opts, Ecma119Image **img)
} }
/* create writer for Joliet structure */ /* create writer for Joliet structure */
ret = joliet_writer_create(target); if (target->joliet) {
if (ret < 0) { ret = joliet_writer_create(target);
goto target_cleanup; if (ret < 0) {
goto target_cleanup;
}
} }
/* Volume Descriptor Set Terminator */ /* Volume Descriptor Set Terminator */