From: Eric Biggers Date: Sat, 22 Nov 2014 03:42:35 +0000 (-0600) Subject: mount_image.c: Replace use of zero-length array X-Git-Tag: v1.7.4~47 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=61e88c80f4b0262be1da706d2dbb05597b265cd1;ds=inline mount_image.c: Replace use of zero-length array --- diff --git a/src/mount_image.c b/src/mount_image.c index 18db8571..3f1d272d 100644 --- a/src/mount_image.c +++ b/src/mount_image.c @@ -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); }