Merge pull request #1745 from RT-Thread/fix_signal_warning

[Kernel] Fix the compiling warning
This commit is contained in:
Bernard Xiong 2018-08-29 13:04:43 +08:00 committed by GitHub
commit d2930ef32a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ static void _signal_deliver(rt_thread_t tid)
rt_sighandler_t rt_signal_install(int signo, rt_sighandler_t handler)
{
rt_sighandler_t old;
rt_sighandler_t old = RT_NULL;
rt_thread_t tid = rt_thread_self();
if (!sig_valid(signo)) return SIG_ERR;