Initialize sensor_data in controller.c 69/145569/1 submit/trunk/20170823.060514
authorJin Yoon <jinny.yoon@samsung.com>
Wed, 23 Aug 2017 02:53:36 +0000 (11:53 +0900)
committerJin Yoon <jinny.yoon@samsung.com>
Wed, 23 Aug 2017 02:53:36 +0000 (11:53 +0900)
Change-Id: I12276270d82ff3a50896e465cd507ac54ee4b19e

src/controller.c

index 02fb465..5b67c00 100755 (executable)
@@ -36,7 +36,7 @@
 #define MAX_QUEUE_ELEMENTS 30
 #define DOOR_RESOURCE_TYPE "org.tizen.door"
 #define FINDING_SERVER_INTERVAL 5.0f
-#define POPPING_VALUE_INTERVAL 10.0f
+#define POPPING_VALUE_INTERVAL 2.0f
 
 #ifdef WEB_API_URI_PUBLIC
 #define WEB_API_URI WEB_API_URI_PUBLIC
@@ -85,7 +85,7 @@ static void _foreach_resource_list(connectivity_resource_s *resource_info, const
 {
        int ret = -1;
        int value = 0;
-       web_util_sensor_data_s sensor_data;
+       web_util_sensor_data_s sensor_data = { 0, };
 
        ret = connectivity_resource_pop_int(resource_info, NULL, &value);
        if (ret < 0)