]> wimlib.net Git - wimlib/blobdiff - src/mount_image.c
mount_image.c: Replace use of zero-length array
[wimlib] / src / mount_image.c
index 18db8571fbd270eafe43e46ad27cae5153d40d91..3f1d272dceae0b5cce6478404c577b64018afbbe 100644 (file)
@@ -2435,7 +2435,7 @@ do_unmount_commit(const char *dir, int unmount_flags,
                ret = do_unmount(dir);
        if (progfunc) {
                /* Terminate the progress thread.  */
-               char empty[0];
+               char empty[1];
                mq_send(mq, empty, 0, 1);
                pthread_join(commit_progress_tid, NULL);
        }