mount_image.c: Don't pass NULL to mq_send()
authorEric Biggers <ebiggers3@gmail.com>
Sun, 8 Jun 2014 03:28:30 +0000 (22:28 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sun, 8 Jun 2014 03:28:30 +0000 (22:28 -0500)
src/mount_image.c

index 934b4450c6bc0f150ed3894a2385561f9e923934..f8e733d872116cb3b0aa455d632f87e8320d4199 100644 (file)
@@ -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: