From a176b053b6f956db14becd981795e3adad969a13 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Thu, 15 Feb 2018 10:59:24 +0000 Subject: [PATCH] glsl: fix sizeof(pointer) bug MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Doesn't really change anything to the test though ¯\_(ツ)_/¯ CID: 1429511 Fixes: e8495646afb06a9dd7786 "glsl/tests: changes to test_disk_cache_create test" Signed-off-by: Eric Engestrom Reviewed-by: Brian Paul Reviewed-by: Tapani Pälli --- src/compiler/glsl/tests/cache_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/glsl/tests/cache_test.c b/src/compiler/glsl/tests/cache_test.c index 3edd88b06a1..9d7bde2834c 100644 --- a/src/compiler/glsl/tests/cache_test.c +++ b/src/compiler/glsl/tests/cache_test.c @@ -186,7 +186,7 @@ static void * cache_exists(struct disk_cache *cache) { uint8_t dummy_key[20]; - char *data = "some test data"; + char data[] = "some test data"; if (!cache) return NULL; -- 2.30.2