fix: "value computed is not used" warning in messages.cpp

This commit is contained in:
Jonathan Campbell
2014-05-03 16:58:27 -07:00
parent 16b8b31722
commit 37b12ef2b2

View File

@@ -85,13 +85,15 @@ void LoadMessageFile(const char * fname) {
/* First remove characters 10 and 13 from the line */
char * parser=linein;
char * writer=linein;
while (*parser) {
if (*parser!=10 && *parser!=13) {
*writer++=*parser;
}
*parser++;
if (*parser != 10 && *parser != 13)
*writer++ = *parser;
parser++;
}
*writer=0;
/* New string name */
if (linein[0]==':') {
string[0]=0;