fix uninitialized value (coap_str) 99/87199/1
authoryoungman <yman.jung@samsung.com>
Wed, 7 Sep 2016 02:29:23 +0000 (11:29 +0900)
committeryoungman <yman.jung@samsung.com>
Wed, 7 Sep 2016 02:29:23 +0000 (11:29 +0900)
Change-Id: I7ce4d39d05e26fbd50e04c5a386032cd67ac3c24
Signed-off-by: youngman <yman.jung@samsung.com>
src/ic-ioty.c

index 1c25a38..2e2ecfe 100644 (file)
@@ -326,7 +326,7 @@ int icl_ioty_find_resource(const char *host_address,
 {
        FN_CALL;
        int ret, timeout;
-       char *coap_str;
+       char *coap_str = NULL;
        char *full_uri;
        char uri[PATH_MAX] = {0};
        icl_cb_s *cb_data;
@@ -405,7 +405,7 @@ int icl_ioty_find_device_info(const char *host_address,
                void *user_data)
 {
        int ret, timeout;
-       char *coap_str;
+       char *coap_str = NULL;
        char *full_uri;
        char uri[PATH_MAX] = {0};
        icl_cb_s *cb_data = NULL;
@@ -480,7 +480,7 @@ int icl_ioty_find_platform_info(const char *host_address,
                void *user_data)
 {
        int ret, timeout;
-       char *coap_str;
+       char *coap_str = NULL;
        char *full_uri;
        char uri[PATH_MAX] = {0};
        icl_cb_s *cb_data = NULL;