From 8985fc43d1c52dc1d5af30f3ba1ef7198e55fee8 Mon Sep 17 00:00:00 2001 From: Florian Schmaus <flow@cs.fau.de> Date: Thu, 6 Apr 2017 17:26:43 +0200 Subject: [PATCH] Correctly initialize CountingPrivateSemaphore's blockedContext Thanks gabor! :) --- emper/CountingPrivateSemaphore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emper/CountingPrivateSemaphore.cpp b/emper/CountingPrivateSemaphore.cpp index 8e746738..f7f629dc 100644 --- a/emper/CountingPrivateSemaphore.cpp +++ b/emper/CountingPrivateSemaphore.cpp @@ -5,7 +5,7 @@ CountingPrivateSemaphore::CountingPrivateSemaphore() : CountingPrivateSemaphore(0) { } -CountingPrivateSemaphore::CountingPrivateSemaphore(unsigned int counter) : counter(counter) { +CountingPrivateSemaphore::CountingPrivateSemaphore(unsigned int counter) : counter(counter), blockedContext(nullptr) { } void CountingPrivateSemaphore::incrementCounterByOne() { -- GitLab