From: Eric Engestrom Date: Thu, 15 Feb 2018 10:59:24 +0000 (+0000) Subject: glsl: fix sizeof(pointer) bug X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a176b053b6f956db14becd981795e3adad969a13;p=mesa.git glsl: fix sizeof(pointer) bug 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 --- 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;