In MethodCall::reply(int), cast the in-param NULL while calling reply(GVariant*) 46/117046/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Thu, 2 Mar 2017 11:26:57 +0000 (20:26 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Thu, 2 Mar 2017 11:26:57 +0000 (20:26 +0900)
Change-Id: I1769fa2f0cbba63234e7ac8e59b48b6a1415afda
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/server/MethodCall.cpp

index 5fa6e1d..72919a8 100644 (file)
@@ -71,7 +71,7 @@ bool MethodCall::reply(int error)
        IF_FAIL_RETURN_TAG(__invocation, false, _D, "Replied already");
 
        if (error == E_NONE)
-               return reply(NULL);
+               return reply(static_cast<GVariant*>(NULL));
 
        g_dbus_method_invocation_return_error_literal(__invocation, CTX_ERROR_DOMAIN, error, "");
        __invocation = NULL;