From b4f2267101ca1475cd74ee3fda68237c8d2e2a64 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Sat, 25 Apr 2020 21:35:10 -0700 Subject: [PATCH] ui: Give default value to avoid compiler warning --- ui/xemu-shaders.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/xemu-shaders.c b/ui/xemu-shaders.c index 8857ce428f..b48fe72367 100644 --- a/ui/xemu-shaders.c +++ b/ui/xemu-shaders.c @@ -113,7 +113,7 @@ struct decal_shader *create_decal_shader(enum SHADER_TYPE type) " out_Color.a += t.a - t.b;\n" "}\n"; - const char *frag_src; + const char *frag_src = NULL; if (type == SHADER_TYPE_MASK) { frag_src = mask_frag_src; } else if (type == SHADER_TYPE_BLIT) {