From b4caf1b9c5541899bc987565330bb599f0ad2f61 Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Wed, 13 Apr 2016 12:59:08 -0600 Subject: demos: Init var in tri.c --- demos/tri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/tri.c b/demos/tri.c index a2c44bda..fa649ca2 100644 --- a/demos/tri.c +++ b/demos/tri.c @@ -1258,7 +1258,7 @@ char *demo_read_spv(const char *filename, size_t *psize) { static VkShaderModule demo_prepare_vs(struct demo *demo) { void *vertShaderCode; - size_t size; + size_t size = 0; vertShaderCode = demo_read_spv("tri-vert.spv", &size); -- cgit v1.2.3