Merge pull request #5892 from cpsw/patch-1

Small code style change
This commit is contained in:
Twinaphex 2017-12-09 15:13:06 +01:00 committed by GitHub
commit d05c305210
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();