From ab382230471c6ee94e82d0fac3f5093e30710628 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 13 Jun 2021 14:47:22 +1000 Subject: Cleanup: redundant initialization These were limited to obvious cases. Some less obvious cases were kept as refactoring might make them necessary in future. --- source/blender/gpu/intern/gpu_shader.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/gpu') diff --git a/source/blender/gpu/intern/gpu_shader.cc b/source/blender/gpu/intern/gpu_shader.cc index 265dec7c56a..e2eb8953292 100644 --- a/source/blender/gpu/intern/gpu_shader.cc +++ b/source/blender/gpu/intern/gpu_shader.cc @@ -159,7 +159,7 @@ void Shader::print_log(Span sources, char *log, const char *stage, } /* Print line from the source file that is producing the error. */ if ((error_line != -1) && (error_line != last_error_line || error_char != last_error_char)) { - const char *src_line_end = src_line; + const char *src_line_end; found_line_id = false; /* error_line is 1 based in this case. */ int src_line_index = 1; -- cgit v1.2.3