ReadFileIntoString() modified to return OK when the file is empty
[asdcplib.git] / src / KM_fileio.cpp
index 07c649fecc91343cb1d8ff0c317a3d5b61a6e54e..27a5bfa01da23fc90918dbc5c4f381c786e74a0f 100644 (file)
@@ -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);