From 7e17e852d1991664496b592f01baf94f09f756d9 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Sat, 8 Mar 2014 22:02:51 +0400 Subject: [PATCH] Static analyzer warning fix; I'm not sure there is any point in such initialization though, so it might need to be removed later --- libuavcan/include/uavcan/internal/lazy_constructor.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libuavcan/include/uavcan/internal/lazy_constructor.hpp b/libuavcan/include/uavcan/internal/lazy_constructor.hpp index 25c3f8cbfe..7aeaa0f1bd 100644 --- a/libuavcan/include/uavcan/internal/lazy_constructor.hpp +++ b/libuavcan/include/uavcan/internal/lazy_constructor.hpp @@ -85,6 +85,7 @@ public: if (ptr_) ptr_->~T(); ptr_ = NULL; + std::fill(data_, data_ + sizeof(T), 0); } void construct()