Remove uninitialised bytes
[platform/framework/native/channel-service.git] / src / IpcServer.cpp
index 0debbd9..f6b2712 100644 (file)
@@ -290,7 +290,7 @@ CATCH:
 struct HelloMessage
 {
        int pid;
-       bool reverse;  // true if the connection is for reverse message
+       int reverse;  // if the connection is for reverse message
 };
 
 gboolean
@@ -352,7 +352,7 @@ IpcServer::OnConnectionRequest(GIOChannel* source, GIOCondition condition, gpoin
                pIpcServer->__pCurrentClientInfo = null;
        }
 
-       if (helloMessage.reverse)
+       if (helloMessage.reverse != 0)
        {
                pClientInfo->pReverseChannel = pChannel;
        }