mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-12 07:10:29 +01:00
radv: Use secure_getenv in radv_builtin_cache_path
Reviewed-by: Eric Engestrom <eric@igalia.com> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27381>
This commit is contained in:
parent
72f95a8364
commit
c01a07f2e4
1 changed files with 1 additions and 1 deletions
|
|
@ -325,7 +325,7 @@ meta_free(void *_device, void *data)
|
|||
static bool
|
||||
radv_builtin_cache_path(char *path)
|
||||
{
|
||||
char *xdg_cache_home = getenv("XDG_CACHE_HOME");
|
||||
char *xdg_cache_home = secure_getenv("XDG_CACHE_HOME");
|
||||
const char *suffix = "/radv_builtin_shaders";
|
||||
const char *suffix2 = "/.cache/radv_builtin_shaders";
|
||||
struct passwd pwd, *result;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue