[IOT-1048][Security][Dangling Pointer] Address of local variable goes out of function scope
Related JIRA ticket : https://jira.iotivity.org/browse/IOT-1048
Patch 1: Init
Patch 2: Apply Mr. Kang's comment
Change-Id: I6f6fb829df89517fc24bed77a9f2827af10ef1de
Signed-off-by: js126.lee <js126.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/7471
Reviewed-by: Yonggoo Kang <ygace.kang@samsung.com>
Reviewed-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-by: Kyungsun Cho <goodsun.cho@samsung.com>
Reviewed-by: Dmitriy Zhuravlev <d.zhuravlev@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>