From: Alexander Couzens Date: Sun, 11 Jun 2017 10:33:34 +0000 (+0200) Subject: kmodloader/get_module_info: initialized aliases to make it more clean X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d54f38a2e2da5a29b00d19b490a87cc5ff910f33;p=oweals%2Fubox.git 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 --- 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;