Get UID from list using stt_config_client_s structure 84/268284/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Mon, 20 Dec 2021 03:12:01 +0000 (12:12 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Mon, 20 Dec 2021 03:12:04 +0000 (12:12 +0900)
commite107d6fe44239819d494dd188cc21cd8940f91ec
tree8a88938659f738e885cf259cf1e01a4b4ed0a89e
parentdf41c2a70ce9e02d7fe74351b5888fd36f41c367
Get UID from list using stt_config_client_s structure

Current code converts the type of element as integer. However, the element of the list is instance
of stt_config_client_s structure. Because the first member of the structure is uid, so current code
has no problem until now. But this can occur problem if the type of uid or the order of member is
changed.

To solve this problem, this patch changes the type from integer to the structure. This can provide
safe access to member.

Change-Id: Ica103855b96bfc4196044772343216f75d38f9c0
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
common/stt_config_mgr.c