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:
parent
350e8e821f
commit
cadf174866
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue