From 747bed11b870a36035ea82b43264999f4235b0b0 Mon Sep 17 00:00:00 2001 From: Vreixo Formoso Date: Tue, 8 Jan 2008 19:33:17 +0100 Subject: [PATCH] Bug fix: Joliet writer should be only created when Joliet is enabled. --- src/ecma119.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ecma119.c b/src/ecma119.c index 1b837ef..903b62d 100644 --- a/src/ecma119.c +++ b/src/ecma119.c @@ -898,9 +898,11 @@ int ecma119_image_new(IsoImage *src, Ecma119WriteOpts *opts, Ecma119Image **img) } /* create writer for Joliet structure */ - ret = joliet_writer_create(target); - if (ret < 0) { - goto target_cleanup; + if (target->joliet) { + ret = joliet_writer_create(target); + if (ret < 0) { + goto target_cleanup; + } } /* Volume Descriptor Set Terminator */