From d54f38a2e2da5a29b00d19b490a87cc5ff910f33 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Sun, 11 Jun 2017 12:33:34 +0200 Subject: [PATCH] kmodloader/get_module_info: initialized aliases to make it more clean Even when the callee looks onto the length is a good idea to zero the points. Found-by: Coverity Scan #1412541 Signed-off-by: Alexander Couzens --- kmodloader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmodloader.c b/kmodloader.c index 3b7ec8b..1a63c98 100644 --- a/kmodloader.c +++ b/kmodloader.c @@ -327,7 +327,7 @@ static struct module* get_module_info(const char *module, const char *name) int fd = open(module, O_RDONLY); unsigned int offset, size; char *map = MAP_FAILED, *strings, *dep = NULL; - const char *aliases[32]; + const char *aliases[32] = { 0 }; int naliases = 0; struct module *m = NULL; struct stat s; -- 2.25.1