glsl: fix sizeof(pointer) bug
authorEric Engestrom <eric.engestrom@imgtec.com>
Thu, 15 Feb 2018 10:59:24 +0000 (10:59 +0000)
committerEric Engestrom <eric.engestrom@imgtec.com>
Fri, 16 Feb 2018 12:04:29 +0000 (12:04 +0000)
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 <eric.engestrom@imgtec.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/compiler/glsl/tests/cache_test.c

index 3edd88b06a158d8c4b4624d7006577c7aae6f9bf..9d7bde2834c827a10757869f65780b9e7d85a044 100644 (file)
@@ -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;