1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #588 from LudwigOrtmann/issue_498

check for active_thread != NULL in syscalls.c before using it
This commit is contained in:
Ludwig Ortmann 2014-01-31 07:02:00 -08:00
commit 96bb0ead09

View File

@ -70,6 +70,7 @@ void _native_syscall_leave()
&& (_native_in_isr == 0)
&& (_native_in_syscall == 0)
&& (native_interrupts_enabled == 1)
&& (active_thread != NULL)
)
{
_native_in_isr = 1;