Module: Mesa
Branch: master
Commit: cadf174866bcb2b717ddc53a586ca51f37e80893
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=cadf174866bcb2b717ddc53a586ca51f37e80893

Author: Emil Velikov <[email protected]>
Date:   Thu Feb  9 13:35:34 2017 +0000

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 <[email protected]>
Acked-by: Timothy Arceri <[email protected]>

---

 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 047a016..46d1614 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':

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to