aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/AsyncTask.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/AsyncTask.hpp b/include/AsyncTask.hpp
index 45b3397..e256dc7 100644
--- a/include/AsyncTask.hpp
+++ b/include/AsyncTask.hpp
@@ -57,7 +57,7 @@ namespace QuickMedia {
future.get();
}
} else {
- T result;
+ T result = T();
if(thread.joinable()) {
thread.join();
result = std::move(future.get());