From 2057819cd3652b457907ad70f6b951cf10c7a481 Mon Sep 17 00:00:00 2001 From: Emekcan Date: Wed, 17 Aug 2022 14:22:27 +0100 Subject: mod_log: fix uninitialized pointer Initialize driver pointer to NULL and fix compilation errors on uninitialized pointers. Signed-off-by: Emekcan Aras Signed-off-by: Rui Miguel Silva --- product/corstone-700/module/log/src/mod_log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/corstone-700/module/log/src/mod_log.c b/product/corstone-700/module/log/src/mod_log.c index a9daaa0..8c385a4 100644 --- a/product/corstone-700/module/log/src/mod_log.c +++ b/product/corstone-700/module/log/src/mod_log.c @@ -327,7 +327,7 @@ static int log_init(fwk_id_t module_id, unsigned int element_count, static int log_bind(fwk_id_t id, unsigned int round) { int status; - struct mod_log_driver_api *driver; + struct mod_log_driver_api *driver = NULL; /* Skip second round */ if (round == 1) -- cgit v1.2.3