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 <emil.velikov@collabora.com>
Acked-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
Emil Velikov 2017-02-09 13:35:34 +00:00 committed by Emil Velikov
parent 350e8e821f
commit cadf174866
1 changed files with 0 additions and 2 deletions

View File

@ -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':