Added default value for initialization of port number

This commit is contained in:
Robert Osfield
2012-12-06 14:42:36 +00:00
parent d4c9ecf370
commit 9ebf35cf05

View File

@@ -47,7 +47,7 @@ public:
if (event.getName() == "/zeroconf/advertise")
{
std::string type;
unsigned int port;
unsigned int port = 0;
event.getUserValue("type",type);
event.getUserValue("port", port);
if (type.empty() || (port == 0))