From d71b86281afdc46114ac86bac0acc75f6b8754af Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Fri, 22 Oct 2021 09:55:57 -0700 Subject: [PATCH] hos: whoops --- libstratosphere/source/hos/hos_version_api.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libstratosphere/source/hos/hos_version_api.cpp b/libstratosphere/source/hos/hos_version_api.cpp index 4dca9be8..7abf07df 100644 --- a/libstratosphere/source/hos/hos_version_api.cpp +++ b/libstratosphere/source/hos/hos_version_api.cpp @@ -64,13 +64,15 @@ namespace ams::hos { bool IsUnitTestProgramForSetVersion(); void InitializeVersionInternal(bool allow_approximate) { + hos::Version current = hos::Version_Current; + /* If we're unit testing, just set the version and move on. */ if (IsUnitTestProgramForSetVersion()) { g_hos_version = hos::Version_Current; g_set_hos_version = true; } else { /* Get the current (and previous approximation of) target firmware. */ - hos::Version prev, current; + hos::Version prev; bool has_prev = false; { /* Acquire exclusive access to set hos version. */