From: kibak.yoon Date: Wed, 30 Mar 2016 13:16:07 +0000 (+0900) Subject: sensord: init epoll_event variable X-Git-Tag: accepted/tizen/common/20160406.143452~1^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=10128a9b5761c650df006b398d21e7a2778338b5;p=platform%2Fcore%2Fsystem%2Fsensord.git sensord: init epoll_event variable * if it does not set the value and some problem is happened at first, later, other developers can make a mistake. so for preventing it, initialize this variable's members. Change-Id: I1c2fe47d816c50a524178d5a657b65cec929d4d2 Signed-off-by: kibak.yoon --- diff --git a/src/client/sensor_event_listener.cpp b/src/client/sensor_event_listener.cpp index 5964ab6..99cf76e 100644 --- a/src/client/sensor_event_listener.cpp +++ b/src/client/sensor_event_listener.cpp @@ -338,6 +338,8 @@ void sensor_event_listener::listen_events(void) struct epoll_event event; ssize_t len = -1; + event.events = EPOLLIN | EPOLLPRI; + do { void *buffer_data; int data_len;