mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
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:
parent
96470227d5
commit
ef5859437a
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue