diff options
author | Daniel Lange <DLange@git.local> | 2024-04-18 22:02:38 +0200 |
---|---|---|
committer | Daniel Lange <DLange@git.local> | 2024-04-18 22:02:38 +0200 |
commit | 52486dbc0f056c37b8cc81bf2f8c2830d77c7d52 (patch) | |
tree | d68b462cdbc6f6a536815bf6a1142cf868373d3f /linux | |
parent | 7017b86bbfafe14859d0fa94ec89351ee167db9e (diff) | |
parent | 0a1db8a770128dec1bb78e5e5217c169a797d0bc (diff) |
Merge branch 'gcc14-analyzer-fixes' of BenBE/htop
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 f3271022..73f69106 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)) { |