diff options
| author | jhurst <jhurst@cinecert.com> | 2019-06-12 18:07:07 -0700 |
|---|---|---|
| committer | jhurst <jhurst@cinecert.com> | 2019-06-12 18:07:07 -0700 |
| commit | c3c7f45ae9692ca4cc3f2999ece69fa9bc911b49 (patch) | |
| tree | 284d02b150142e81ce6adc5a82040589d6aecb3c /src/KM_fileio.cpp | |
| parent | c83be922eb218d149f369183328440c7302e3934 (diff) | |
ReadFileIntoString() modified to return OK when the file is empty
Diffstat (limited to 'src/KM_fileio.cpp')
| -rw-r--r-- | src/KM_fileio.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
