From: Emil Velikov Date: Thu, 9 Feb 2017 13:35:34 +0000 (+0000) Subject: util/disk_cache: do not allow space in MESA_GLSL_CACHE_MAX_SIZE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cadf174866bcb2b717ddc53a586ca51f37e80893;p=mesa.git 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 --- 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':