From e20f185f75d77fe58f84b4d1249ee2a367902ed3 Mon Sep 17 00:00:00 2001 From: superp00t Date: Sat, 17 Feb 2024 21:29:01 -0500 Subject: [PATCH] fix(gx): file pointer should be initialized to nullptr because its value is used as a condition --- src/gx/CGxDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gx/CGxDevice.cpp b/src/gx/CGxDevice.cpp index daf1b2c..b0e90dd 100644 --- a/src/gx/CGxDevice.cpp +++ b/src/gx/CGxDevice.cpp @@ -463,7 +463,7 @@ void CGxDevice::IShaderLoad(CGxShader* shaders[], EGxShTarget target, const char } char path[260]; - SFile* file; + SFile* file = nullptr; while (true) { sprintf(path, "%s\\%s\\%s.bls", a4, g_gxShaderProfileNames[target][profile], a5);