diff options
author | Benny Baumann <BenBE@geshi.org> | 2024-04-08 15:05:44 +0200 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2024-04-17 10:29:27 +0200 |
commit | 51ead9d8b68a7b65010da8c943f5e8264ded01b9 (patch) | |
tree | 92122c2c22640b57a9ae82205838dcd76ff37447 /linux | |
parent | 6f0adfab242f40e0a0e82445abac4e574c7a97e8 (diff) |
Explicit memory initialization when reading status file
Diffstat (limited to 'linux')
-rw-r--r-- | linux/LinuxProcessTable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/LinuxProcessTable.c b/linux/LinuxProcessTable.c index f8adf9ad..49093219 100644 --- a/linux/LinuxProcessTable.c +++ b/linux/LinuxProcessTable.c @@ -417,7 +417,7 @@ static bool LinuxProcessTable_readStatusFile(Process* process, openat_arg_t proc if (!statusfile) return false; - char buffer[PROC_LINE_LENGTH + 1]; + char buffer[PROC_LINE_LENGTH + 1] = {0}; while (fgets(buffer, sizeof(buffer), statusfile)) { |