From 11db44d91c4023f322a8fdb09f8ec5eddce2dab8 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Wed, 19 Feb 2014 14:25:45 -0600 Subject: [PATCH] wimlib_export_image(): Fix NO_{NAMES,DESCRIPTIONS} flags --- src/export_image.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/export_image.c b/src/export_image.c index f901ff19..bfeef97a 100644 --- a/src/export_image.c +++ b/src/export_image.c @@ -179,7 +179,7 @@ wimlib_export_image(WIMStruct *src_wim, /* Determine destination image name and description. */ if (export_flags & WIMLIB_EXPORT_FLAG_NO_NAMES) { - next_dest_name = NULL; + next_dest_name = T(""); } else if (dest_name) { next_dest_name = dest_name; } else { @@ -190,8 +190,8 @@ wimlib_export_image(WIMStruct *src_wim, DEBUG("Using name \"%"TS"\"", next_dest_name); if (export_flags & WIMLIB_EXPORT_FLAG_NO_DESCRIPTIONS) { - next_dest_description = NULL; - } if (dest_description) { + next_dest_description = T(""); + } else if (dest_description) { next_dest_description = dest_description; } else { next_dest_description = wimlib_get_image_description( -- 2.43.0