From bc372dd82ca727e59794a7147dcf9b6a332cc78c Mon Sep 17 00:00:00 2001 From: Michael West Date: Wed, 23 Oct 2013 15:30:22 -0700 Subject: CID 1104311: Fixed uninitialized pointer --- host/include/uhd/transport/zero_copy.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'host') diff --git a/host/include/uhd/transport/zero_copy.hpp b/host/include/uhd/transport/zero_copy.hpp index 1dc0e8e26..9b5b25e97 100644 --- a/host/include/uhd/transport/zero_copy.hpp +++ b/host/include/uhd/transport/zero_copy.hpp @@ -29,7 +29,9 @@ namespace uhd{ namespace transport{ //! Simple managed buffer with release interface class UHD_API managed_buffer{ public: - managed_buffer(void):_ref_count(0){} + managed_buffer(void):_ref_count(0),_buffer(NULL),_length(0){} + + virtual ~managed_buffer(void) {} /*! * Signal to the transport that we are done with the buffer. -- cgit v1.2.3