sensord: fix bug with incorrect bit operation 72/142372/1
authorkibak.yoon <kibak.yoon@samsung.com>
Thu, 3 Aug 2017 15:38:29 +0000 (00:38 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Thu, 3 Aug 2017 15:38:29 +0000 (00:38 +0900)
Change-Id: I29c35c9b923d572fbe0b39aa7fe5913386f77bb2
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/shared/event_loop.cpp

index c3a698b..4f9e7ed 100644 (file)
@@ -43,7 +43,7 @@ static gboolean g_io_handler(GIOChannel *ch, GIOCondition condition, gpointer da
        cond = (unsigned int)condition;
 
        if (cond & (G_IO_HUP))
-               cond &= ~(G_IO_IN & G_IO_OUT);
+               cond &= ~(G_IO_IN | G_IO_OUT);
 
        handler_info *info = (handler_info *)data;
        id = info->id;