diff options
author | Alexander Couzens <lynxis@fe80.eu> | 2017-06-11 12:33:34 +0200 |
---|---|---|
committer | Alexander Couzens <lynxis@fe80.eu> | 2017-06-11 14:32:51 +0200 |
commit | d54f38a2e2da5a29b00d19b490a87cc5ff910f33 (patch) | |
tree | 5b8f62a190bcb108eb66dc2d16dbf2461047b5cb /kmodloader.c | |
parent | a0b6feff3b0e8ef56470f20e30f93d012dffc290 (diff) | |
download | ubox-d54f38a2e2da5a29b00d19b490a87cc5ff910f33.tar.gz |
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 <lynxis@fe80.eu>
Diffstat (limited to 'kmodloader.c')
-rw-r--r-- | kmodloader.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |