Skip to content

Commit 60f3d61

Browse files
committed
[Kernel] Fix the compiling warning
1 parent 240451b commit 60f3d61

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)