Allowed NULL as second arg of iso_write_opts_detach_jte().

This commit is contained in:
Thomas Schmitt 2010-09-29 10:08:30 +02:00
parent c30674095b
commit a9af97733e
2 changed files with 5 additions and 3 deletions

View File

@ -1402,7 +1402,7 @@ int ecma119_image_new(IsoImage *src, IsoWriteOpts *opts, Ecma119Image **img)
iso_path = "/home/test/test_jte.iso"; iso_path = "/home/test/test_jte.iso";
template_path = "/home/test/test_jte.template"; template_path = "/home/test/test_jte.template";
jigdo_path = "/home/test/test_jte.jigdo"; jigdo_path = "/home/test/test_jte.jigdo";
mapping = "Debian=/home/test/cdrskin-0.7.2"; mapping = "Debian=/home/test/cdrskin-0.7.2/";
force_md5_pattern = "/home/test/cdrskin-0.7.2/libburn/"; force_md5_pattern = "/home/test/cdrskin-0.7.2/libburn/";
/* md5 list produced by xorriso/make_jigdo_md5_entry.sh */ /* md5 list produced by xorriso/make_jigdo_md5_entry.sh */
@ -2609,6 +2609,7 @@ int iso_write_opts_detach_jte(IsoWriteOpts *opts, void **libjte_handle)
{ {
#ifdef Libisofs_with_libjtE #ifdef Libisofs_with_libjtE
if (*libjte_handle != NULL)
*libjte_handle = opts->libjte_handle; *libjte_handle = opts->libjte_handle;
opts->libjte_handle = NULL; opts->libjte_handle = NULL;
return ISO_SUCCESS; return ISO_SUCCESS;

View File

@ -1877,7 +1877,8 @@ int iso_write_opts_attach_jte(IsoWriteOpts *opts, void *libjte_handle);
* @param opts * @param opts
* The option set to be manipulated. * The option set to be manipulated.
* @param libjte_handle * @param libjte_handle
* Returns the previously set libjte handle * If not submitted as NULL, this will return the previously set
* libjte handle.
* @return * @return
* ISO_SUCCESS or error * ISO_SUCCESS or error
* *