cleanup: remove ominous pointer calculation

Firstly, why calculate something when the next statement is a return
anyway.

Secondly, the calculation subtracts two completely unrelated pointers.

This must be some code reshuffling artifact.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-03-01 20:24:42 +01:00 committed by Dirk Hohndel
parent 96470227d5
commit ef5859437a

View file

@ -222,10 +222,8 @@ static int parse_dan_format(const char *filename, struct xml_params *params, str
continue;
}
if (ptr && ptr[4] == '}') {
end_ptr += ptr - (char *)mem_csv.buffer;
if (ptr && ptr[4] == '}')
return report_error(translate("gettextFromC", "No dive profile found from '%s'"), filename);
}
if (ptr)
ptr = parse_dan_new_line(ptr, NL);