Explorar o código

initialize variable to NULL to be safe against uninitialized usage

jp9000 %!s(int64=12) %!d(string=hai) anos
pai
achega
6e6535d568
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      libobs/graphics/effect-parser.c

+ 1 - 1
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);