Skip to content

Commit

Permalink
fixed valgrind warning about uninitialized data in sscanf (reading fr…
Browse files Browse the repository at this point in the history
…om procfs)

// BelongsTo: CS-582
  • Loading branch information
jgabler-hpc committed Sep 18, 2024
1 parent c293751 commit 094f6ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/daemons/common/procfs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,8 @@ time_t last_time
char procnam[1024];
int fd = -1;
#if defined(LINUX)
char buffer[BIGLINE];
char buffer[BIGLINE]{};

lListElem *pr = nullptr;
SGE_STRUCT_STAT fst;
unsigned long utime = 0, stime = 0, vsize = 0, pid = 0;
Expand Down

0 comments on commit 094f6ec

Please sign in to comment.