Fix for C90 limitation

This commit is contained in:
Takayuki Matsuoka 2021-05-24 20:53:40 +09:00
parent 5d8a8133eb
commit 1a4fd0e6c2

View File

@ -1054,7 +1054,7 @@ static void XSUM_parseFile1(ParseFileArg* XSUM_parseFileArg, int rev)
report->nProperlyFormattedLines++;
do {
int const fnameIsStdin = (strcmp(parsedLine.filename, stdinFileName) == 0); // "stdin"
int const fnameIsStdin = (strcmp(parsedLine.filename, stdinFileName) == 0); /* "stdin" */
FILE* const fp = fnameIsStdin ? stdin : XSUM_fopen(parsedLine.filename, "rb");
if (fp == stdin) {
XSUM_setBinaryMode(stdin);