diff --git a/ctr/ctr_system.c b/ctr/ctr_system.c index 5f118dfc7e..29594251e7 100644 --- a/ctr/ctr_system.c +++ b/ctr/ctr_system.c @@ -77,7 +77,10 @@ void __system_allocateHeaps(void) void __attribute__((weak)) __libctru_init(void (*retAddr)(void)) { /* Store the return address */ - __system_retAddr = envIsHomebrew() ? retAddr : NULL; + __system_retAddr = NULL; + if (envIsHomebrew()) { + __system_retAddr = retAddr; + } /* Initialize the synchronization subsystem */ __sync_init();