[Mesa-dev] [PATCH] util/disk_cache: do not allow space in MESA_GLSL_CACHE_MAX_SIZE
Emil Velikov
emil.l.velikov at gmail.com
Thu Feb 9 13:35:34 UTC 2017
From: Emil Velikov <emil.velikov at collabora.com>
No other env var used in mesa allows for space in the variable contents.
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
Worth documenting and/or even renaming them ?
---
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 885323693b..ef9a45a806 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.11.0
More information about the mesa-dev
mailing list