Skip to content

Commit d2930ef

Browse files
authored
Merge pull request #1745 from RT-Thread/fix_signal_warning
[Kernel] Fix the compiling warning
2 parents 240451b + 60f3d61 commit d2930ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/signal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ static void _signal_deliver(rt_thread_t tid)
147147

148148
rt_sighandler_t rt_signal_install(int signo, rt_sighandler_t handler)
149149
{
150-
rt_sighandler_t old;
150+
rt_sighandler_t old = RT_NULL;
151151
rt_thread_t tid = rt_thread_self();
152152

153153
if (!sig_valid(signo)) return SIG_ERR;

0 commit comments

Comments
 (0)