From 60f3d61acd01af4990263bb4d3e1aec8cf115f48 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Wed, 29 Aug 2018 02:35:51 +0100 Subject: [PATCH] [Kernel] Fix the compiling warning --- src/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/signal.c b/src/signal.c index 5b93c774df..b2193957bc 100644 --- a/src/signal.c +++ b/src/signal.c @@ -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;