mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 14:50:17 +00:00
GRIM: Silence sanitizer warning
This commit is contained in:
parent
b4e6fa8078
commit
4246b97582
@ -107,11 +107,7 @@ Localizer::Localizer() {
|
||||
char *nextline = data;
|
||||
Common::String last_entry;
|
||||
//Read file till end
|
||||
for (char *line = data + 4; line - data <= filesize; line = nextline + 1) {
|
||||
if (line == nullptr || nextline == nullptr) {
|
||||
break;
|
||||
}
|
||||
|
||||
for (char *line = data + 4; nextline != nullptr && (line - data <= filesize); nextline != nullptr && (line = nextline + 1)) {
|
||||
nextline = strchr(line, '\n');
|
||||
//if there is no next line we arrived the last one
|
||||
if (nextline == nullptr) {
|
||||
|
Loading…
Reference in New Issue
Block a user