Skip to content

Commit

Permalink
Create Coverity issue in ProcessInfo.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
scthunderbolt committed Oct 25, 2024
1 parent e780911 commit c773e26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/core/ProcessInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,8 @@ namespace Core {
char buffer[bufferSize];
while (true) {
char c;
size_t readChars = fread(&c, 1, 1, cmdFile);
size_t readChars = 0;
fread(&c, 1, 1, cmdFile);
if (readChars == 0) {
break;
}
Expand Down

0 comments on commit c773e26

Please sign in to comment.