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
@ -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…
x
Reference in New Issue
Block a user