From 61e88c80f4b0262be1da706d2dbb05597b265cd1 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Fri, 21 Nov 2014 21:42:35 -0600 Subject: [PATCH] mount_image.c: Replace use of zero-length array --- src/mount_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.43.0