diff options
Diffstat (limited to 'lib/icl-query.c')
-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) { |