From 9e515a50b71b8eb0b7d7d1450543dbf3ec517840 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 5 Jun 2020 20:58:20 -0400 Subject: [PATCH] cro_helper: Silence -Wuninitialized warning We can simply initialize the variable in this case with a consistent value. --- src/core/hle/service/ldr_ro/cro_helper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/hle/service/ldr_ro/cro_helper.cpp b/src/core/hle/service/ldr_ro/cro_helper.cpp index 89e64f9d8..78a03063f 100644 --- a/src/core/hle/service/ldr_ro/cro_helper.cpp +++ b/src/core/hle/service/ldr_ro/cro_helper.cpp @@ -1257,7 +1257,7 @@ ResultCode CROHelper::Link(VAddr crs_address, bool link_on_load_bug_fix) { ResultCode result = RESULT_SUCCESS; { - VAddr data_segment_address; + VAddr data_segment_address = 0; if (link_on_load_bug_fix) { // this is a bug fix introduced by 7.2.0-17's LoadCRO_New // The bug itself is: