]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
added const
authorPaul Cruz <paulcruz74@fb.com>
Fri, 16 Jun 2017 00:03:59 +0000 (17:03 -0700)
committerPaul Cruz <paulcruz74@fb.com>
Fri, 16 Jun 2017 00:03:59 +0000 (17:03 -0700)
programs/fileio.c

index 908e0edb663334444dae60c9bc7a5211ab951e75..d807cffc1be01e70589816834b6d27dfca4e9067 100644 (file)
@@ -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;