ret = do_unmount(dir);
if (progfunc) {
/* Terminate the progress thread. */
- mq_send(mq, NULL, 0, 1);
+ char empty[0];
+ mq_send(mq, empty, 0, 1);
pthread_join(commit_progress_tid, NULL);
}
out_delete_mq:
int mount_flags;
int ret;
- wimlib_global_init(WIMLIB_INIT_FLAG_ASSUME_UTF8);
+ ret = wimlib_global_init(WIMLIB_INIT_FLAG_ASSUME_UTF8);
+ if (ret)
+ return ret;
if (unmount_flags & ~(WIMLIB_UNMOUNT_FLAG_CHECK_INTEGRITY |
WIMLIB_UNMOUNT_FLAG_COMMIT |