From 8da4e9b95c518a1b43b39fda875e068a36fa465f Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sat, 9 Jun 2018 17:17:32 +0100 Subject: [PATCH] Problem: pgm_sender does not initialise all its class variables Solution: do it to silence static analysis warnings --- src/pgm_sender.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pgm_sender.cpp b/src/pgm_sender.cpp index 9d2f5afa..1fc71521 100644 --- a/src/pgm_sender.cpp +++ b/src/pgm_sender.cpp @@ -51,6 +51,10 @@ zmq::pgm_sender_t::pgm_sender_t (io_thread_t *parent_, more_flag (false), pgm_socket (false, options_), options (options_), + handle (static_cast (NULL)), + uplink_handle (static_cast (NULL)), + rdata_notify_handle (static_cast (NULL)), + pending_notify_handle (static_cast (NULL)), out_buffer (NULL), out_buffer_size (0), write_size (0)