From: jhurst Date: Thu, 13 Jun 2019 01:07:07 +0000 (-0700) Subject: ReadFileIntoString() modified to return OK when the file is empty X-Git-Tag: rel_2_10_33^2~3 X-Git-Url: https://git.carlh.net/gitweb/?p=asdcplib.git;a=commitdiff_plain;h=13f1b3172139a2f07804d8f9f5d1d987ab78b41f ReadFileIntoString() modified to return OK when the file is empty --- diff --git a/src/KM_fileio.cpp b/src/KM_fileio.cpp index 07c649f..27a5bfa 100644 --- a/src/KM_fileio.cpp +++ b/src/KM_fileio.cpp @@ -1255,8 +1255,8 @@ Kumu::ReadFileIntoString(const std::string& filename, std::string& outString, ui if ( fsize == 0 ) { - DefaultLogSink().Error("%s: zero file size\n", filename.c_str()); - return RESULT_READFAIL; + outString = ""; + return RESULT_OK; } result = ReadBuf.Capacity((ui32_t)fsize);