diff options
author | sung.goo.kim <sung.goo.kim@samsung.com> | 2016-03-02 07:59:14 +0900 |
---|---|---|
committer | sung.goo.kim <sung.goo.kim@samsung.com> | 2016-03-02 07:59:14 +0900 |
commit | 5ba9d51d287ec1ebc01335d5132cd27cf91c5a62 (patch) | |
tree | 2eba2f23bc13e8e5ac97a63df0917f4531b999f6 | |
parent | 02988ece4f56b47d3fe2c9add3225bc558ebef8b (diff) | |
download | iotcon-5ba9d51d287ec1ebc01335d5132cd27cf91c5a62.tar.gz iotcon-5ba9d51d287ec1ebc01335d5132cd27cf91c5a62.tar.bz2 iotcon-5ba9d51d287ec1ebc01335d5132cd27cf91c5a62.zip |
Change-Id: Ie35f8594126a6ccc649a4bceead41fa144078c30
-rw-r--r-- | lib/icl-query.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/icl-query.c b/lib/icl-query.c index 5cd3da8..301c21d 100644 --- a/lib/icl-query.c +++ b/lib/icl-query.c @@ -76,11 +76,11 @@ API int iotcon_query_get_resource_type(iotcon_query_h query, API int iotcon_query_get_interface(iotcon_query_h query, char **resource_iface) { - char *iface; + char *iface = NULL; RETV_IF(false == ic_utils_check_oic_feature_supported(), IOTCON_ERROR_NOT_SUPPORTED); RETV_IF(NULL == query, IOTCON_ERROR_INVALID_PARAMETER); - RETV_IF(NULL == iface, IOTCON_ERROR_INVALID_PARAMETER); + RETV_IF(NULL == resource_iface, IOTCON_ERROR_INVALID_PARAMETER); iotcon_query_lookup(query, ICL_QUERY_KEY_INTERFACE, &iface); if (NULL == iface) { |