From 17f45bbc254dc6a2818f1849e5bf78a3ac44170e Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Wed, 8 Jun 2016 11:57:26 +0100 Subject: [PATCH] Remove compiler warnings. --- YSFGateway/APRSWriterThread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/YSFGateway/APRSWriterThread.cpp b/YSFGateway/APRSWriterThread.cpp index de17205..473a931 100644 --- a/YSFGateway/APRSWriterThread.cpp +++ b/YSFGateway/APRSWriterThread.cpp @@ -110,7 +110,7 @@ void CAPRSWriterThread::entry() if (m_connected) { if (!m_queue.isEmpty()){ - char* p; + char* p = NULL; m_queue.getData(&p, 1U); LogMessage("APRS ==> %s", p); @@ -151,7 +151,7 @@ void CAPRSWriterThread::entry() m_socket.close(); while (!m_queue.isEmpty()) { - char* p; + char* p = NULL; m_queue.getData(&p, 1U); delete[] p; }