From cadf174866bcb2b717ddc53a586ca51f37e80893 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Thu, 9 Feb 2017 13:35:34 +0000 Subject: [PATCH] util/disk_cache: do not allow space in MESA_GLSL_CACHE_MAX_SIZE No other env var used in mesa allows for space in the variable contents. Signed-off-by: Emil Velikov Acked-by: Timothy Arceri --- src/util/disk_cache.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/util/disk_cache.c b/src/util/disk_cache.c index 047a016006b..46d16144166 100644 --- a/src/util/disk_cache.c +++ b/src/util/disk_cache.c @@ -278,8 +278,6 @@ disk_cache_create(void) if (end == max_size_str) { max_size = 0; } else { - while (*end && isspace(*end)) - end++; switch (*end) { case 'K': case 'k': -- 2.30.2