treewide: Use os_get_option_secure instead secure_getenv
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org> Acked-by: Antonio Ospite <antonio.ospite@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38128>
This commit is contained in:
@@ -927,7 +927,7 @@ disk_cache_generate_cache_dir(void *mem_ctx, const char *gpu_name,
|
||||
}
|
||||
|
||||
if (path == NULL) {
|
||||
char *xdg_cache_home = secure_getenv("XDG_CACHE_HOME");
|
||||
const char *xdg_cache_home = os_get_option_secure("XDG_CACHE_HOME");
|
||||
|
||||
if (xdg_cache_home) {
|
||||
path = concatenate_and_mkdir(mem_ctx, xdg_cache_home, cache_dir_name,
|
||||
|
||||
Reference in New Issue
Block a user