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:
Yonggang Luo
2025-10-29 16:14:12 +08:00
committed by Marge Bot
parent 34db720660
commit 95faaa4553
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -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,