]> wimlib.net Git - wimlib/commitdiff
mount_image.c: Replace use of zero-length array
authorEric Biggers <ebiggers3@gmail.com>
Sat, 22 Nov 2014 03:42:35 +0000 (21:42 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Sat, 22 Nov 2014 03:42:38 +0000 (21:42 -0600)
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);
        }