Fix preference_get_string() function 66/308866/1
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 2 Apr 2024 05:42:10 +0000 (14:42 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 2 Apr 2024 05:42:10 +0000 (14:42 +0900)
commit5b16f9e4f28a5d1f5fb339756a177f13cc6eb32f
tree8b02e77742d2ea979ed1b03bfac3d58814de7c0c
parent332a2a701c3cf938cc1235621a9242cfcb4be067
Fix preference_get_string() function

In the previous implementation, the preference does not write the data
if the string value is empty string. Even if the data length is 0, the
function should return the empty string.
This patch is for backward compatibility.

Change-Id: I36c9892cda0530fc3a2170e73c685958d188232b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
preference/file-internal.cc