diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/common/strlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/strlib.c b/src/common/strlib.c index 8947821df..b6ff4b279 100644 --- a/src/common/strlib.c +++ b/src/common/strlib.c @@ -829,7 +829,7 @@ bool sv_readdb(const char* directory, const char* filename, char delim, int minc continue; //TODO: strip trailing // comment //TODO: strip trailing whitespace - if( line[0] == '\0' || line[0] == '\n' ) + if( line[0] == '\0' || line[0] == '\n' || line[0] == '\r') continue; columns = sv_split(line, strlen(line), 0, delim, fields, ARRAYLENGTH(fields), (e_svopt)(SV_TERMINATE_LF|SV_TERMINATE_CRLF)); |