[PATCH rtems-lwip 04/10] FIX: warning variable might be used without initialization
berndmoessner80 at gmail.com
berndmoessner80 at gmail.com
Thu Jan 4 00:04:33 UTC 2024
From: Bernd Moessner <berndmoessner80 at gmail.com>
---
rtemslwip/common/sys_arch.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rtemslwip/common/sys_arch.c b/rtemslwip/common/sys_arch.c
index 2651c9c..b97404c 100644
--- a/rtemslwip/common/sys_arch.c
+++ b/rtemslwip/common/sys_arch.c
@@ -372,7 +372,7 @@ sys_request_irq(unsigned int irqnum, sys_irq_handler_t handler,
sys_prot_t
sys_arch_protect()
{
- sys_prot_t pval;
+ sys_prot_t pval = 0;
#if RTEMS_SMP
rtems_recursive_mutex_lock( &sys_arch_lock );
--
2.34.1
More information about the devel
mailing list