From cbfdcc0669685c3e01a10e5c83a0a02b133c0848 Mon Sep 17 00:00:00 2001 From: monsta Date: Thu, 31 Dec 2015 10:37:15 +0300 Subject: mdm: fix logic error --- mate-session/mdm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mate-session/mdm.c b/mate-session/mdm.c index 3fca19c..bbb40eb 100644 --- a/mate-session/mdm.c +++ b/mate-session/mdm.c @@ -301,7 +301,7 @@ static gboolean mdm_init_protocol_connection(MdmProtocolData* data) response = mdm_send_protocol_msg(data, MDM_PROTOCOL_MSG_VERSION); - if (!response || strncmp(response, "MDM ", strlen("MDM ") != 0)) + if (!response || strncmp(response, "MDM ", strlen("MDM ")) != 0) { g_free(response); -- cgit v1.2.1