kmodloader/get_module_info: initialized aliases to make it more clean
authorAlexander Couzens <lynxis@fe80.eu>
Sun, 11 Jun 2017 10:33:34 +0000 (12:33 +0200)
committerAlexander Couzens <lynxis@fe80.eu>
Sun, 11 Jun 2017 12:32:51 +0000 (14:32 +0200)
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>
kmodloader.c

index 3b7ec8b0f59cdc09180fad76fd978e4abd689072..1a63c9810a99e30009ef9a85c39dba6a65fb3264 100644 (file)
@@ -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;