oslib-posix: initialize mutex and condition variable
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 10 Mar 2020 17:58:30 +0000 (18:58 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 22:02:22 +0000 (23:02 +0100)
commit78b3f67acdf0f646d35ebdf98b9e91fb04ab9a07
tree48aa7b29b09acc20154ac652175bcfeb36abfd5f
parent3c507c26ecda8f072c80338592d7894543448fe4
oslib-posix: initialize mutex and condition variable

The mutex and condition variable were never initialized, causing
-mem-prealloc to abort with an assertion failure.

Fixes: 037fb5eb3941c80a2b7c36a843e47207ddb004d4
Reported-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Cc: bauerchen <bauerchen@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
util/oslib-posix.c