From 0b1ef651852d008d61771c3386c2922aeab1f462 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 7 Jun 2014 22:28:30 -0500 Subject: [PATCH] mount_image.c: Don't pass NULL to mq_send() --- src/mount_image.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mount_image.c b/src/mount_image.c index 934b4450..f8e733d8 100644 --- a/src/mount_image.c +++ b/src/mount_image.c @@ -2416,7 +2416,8 @@ do_unmount_commit(const char *dir, int unmount_flags, ret = do_unmount(dir); if (progfunc) { /* Terminate the progress thread. */ - mq_send(mq, NULL, 0, 1); + char empty[0]; + mq_send(mq, empty, 0, 1); pthread_join(commit_progress_tid, NULL); } out_delete_mq: -- 2.43.0