remove logically dead code path (coverity 1231842)

This commit is contained in:
Vincent Sanders 2014-08-18 17:20:28 +01:00
parent 1a71a84b62
commit ee3247f532
1 changed files with 9 additions and 10 deletions

View File

@ -505,16 +505,15 @@ static bool check_glyph_data_valid(int pos, char c)
} else {
return true;
}
} else if (offset >= 3) {
if (c != '.' && c != '#' && c != ' ') {
LOG(LOG_ERROR, " Invalid glyph data: "
"expecting '.', '#', or ' ', "
"got '%c' (%i)\n",
c, c);
return false;
} else {
return true;
}
}
/* offset must be >=3 */
if (c != '.' && c != '#' && c != ' ') {
LOG(LOG_ERROR, " Invalid glyph data: "
"expecting '.', '#', or ' ', "
"got '%c' (%i)\n",
c, c);
return false;
}
return true;