From 6e6535d568d38c0ee78f2ee32dcf44649991a2ec Mon Sep 17 00:00:00 2001 From: jp9000 Date: Thu, 17 Oct 2013 00:36:32 -0700 Subject: [PATCH] initialize variable to NULL to be safe against uninitialized usage --- libobs/graphics/effect-parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libobs/graphics/effect-parser.c b/libobs/graphics/effect-parser.c index 52e3aa577..780f3f362 100644 --- a/libobs/graphics/effect-parser.c +++ b/libobs/graphics/effect-parser.c @@ -1338,7 +1338,7 @@ static inline bool ep_compile_pass_shader(struct effect_parser *ep, struct dstr location; struct darray used_params; /* struct dstr */ struct darray *pass_params; /* struct pass_shaderparam */ - shader_t shader; + shader_t shader = NULL; bool success = true; dstr_init(&shader_str);