From 54aec6c9e8db5882ed7d4edbfb473d27deabe01a Mon Sep 17 00:00:00 2001 From: cpsw <33490332+cpsw@users.noreply.github.com> Date: Sat, 9 Dec 2017 11:01:03 -0300 Subject: [PATCH] Small code style change Suggesting a code style change. --- ctr/ctr_system.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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();