From: Paul Cruz Date: Fri, 16 Jun 2017 00:03:59 +0000 (-0700) Subject: added const X-Git-Tag: v1.3.0~1^2~21^2~16^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b316691f9126711a2a68f7e0661194afd2b3fdf8;p=thirdparty%2Fzstd.git added const --- diff --git a/programs/fileio.c b/programs/fileio.c index 908e0edb6..d807cffc1 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -981,7 +981,7 @@ static int getFileInfo(fileInfo_t* info, const char* inFileName){ } else if (magicNumber == ZSTD_MAGIC_SKIPPABLE_START) { BYTE frameSizeBuffer[4]; - size_t readBytes = fread(frameSizeBuffer, 1, 4, srcFile); + size_t const readBytes = fread(frameSizeBuffer, 1, 4, srcFile); if (readBytes != 4) { DISPLAY("There was an error reading skippable frame size"); detectError = 1;