diff --git a/libraries/libstratosphere/source/hos/hos_version_api.cpp b/libraries/libstratosphere/source/hos/hos_version_api.cpp index 4dca9be89..7abf07df0 100644 --- a/libraries/libstratosphere/source/hos/hos_version_api.cpp +++ b/libraries/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. */