X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fexport_image.c;h=bfeef97ad6b41afc83970afd6315f072e991c4d3;hp=f901ff1973a74038878ff2c3560e8f25efbcfcb6;hb=cd433ce49f582175063141cc3673840bf321c453;hpb=668c363a59c521f48eecbc4dd549c07a3e36179e 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(