tbm_module: initialize variable namelist. 29/321229/1
authorhojoon-ryou <hojoon.ryou@samsung.com>
Mon, 17 Mar 2025 11:33:05 +0000 (20:33 +0900)
committerhojoon-ryou <hojoon.ryou@samsung.com>
Mon, 17 Mar 2025 11:35:07 +0000 (20:35 +0900)
Change-Id: I0fcd66442bff0c5c86eefba04629823d8f1d1f48
Signed-off-by: hojoon-ryou <hojoon.ryou@samsung.com>
src/tbm_module.c

index 56317662cfad2aad81630bd5947d394575eda10e..486bebfea564171af01d565999c72729eae3520b 100644 (file)
@@ -256,7 +256,7 @@ tbm_module *
 tbm_module_load(int fd)
 {
        tbm_module *module;
-       struct dirent **namelist;
+       struct dirent **namelist = NULL;
        int ret = 0, n;
 
        module = calloc(1, sizeof(struct _tbm_module));