subsession_get_user_list also returns the empty string
which is the value of the default user, so it should be ignored
Change-Id: I36cd76310fc42ef620eb23592c726eb0c975ec7e
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
}
std::vector<std::string> result_list;
- for (int i = 0; i < user_count; i++)
+ for (int i = 0; i < user_count; i++) {
+ if (!user_list[i] || strlen(user_list[i]) == 0)
+ continue;
+
result_list.emplace_back(user_list[i]);
+ }
std::free(user_list);
return result_list;