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 18db857..3f1d272 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.  */
                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);
        }
                mq_send(mq, empty, 0, 1);
                pthread_join(commit_progress_tid, NULL);
        }