diff options
author | Emekcan <emekcan.aras@arm.com> | 2022-08-17 14:22:27 +0100 |
---|---|---|
committer | Rui Miguel Silva <rui.silva@linaro.org> | 2022-08-18 18:19:31 +0100 |
commit | 2057819cd3652b457907ad70f6b951cf10c7a481 (patch) | |
tree | fc5d35a58a0951e0e02bbb868612e0229bf0c35a | |
parent | e874a23a2c9c9705b23789be1cf2a41d6cf8d8b4 (diff) |
Initialize driver pointer to NULL and fix compilation errors on
uninitialized pointers.
Signed-off-by: Emekcan Aras <emekcan.aras@arm.com>
Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
-rw-r--r-- | product/corstone-700/module/log/src/mod_log.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |