mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 22:35:27 +00:00
core: ignore bogus m in cylinder
A bogus key/value pair was introduced in the cylinder, consisting of a lonely "m" without value. This is caused by commit46004c39e2
and fixed in48d9c8eb6e
. See referenced commits for more info. Just ignore this key/value pair. No processing is broken due to this, as the git storage stores only metric SI type data. In fact, the m unit is superfluous anyway. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
3985a8aa8f
commit
78bafe8f62
1 changed files with 12 additions and 0 deletions
|
@ -394,6 +394,18 @@ static void parse_cylinder_keyvalue(void *_cylinder, const char *key, const char
|
|||
cylinder->depth = get_depth(value);
|
||||
return;
|
||||
}
|
||||
if (!strcmp(key, "m'") && strlen(value) == 0) {
|
||||
/* found a bogus key/value pair in the cylinder, consisting
|
||||
* of a lonely "m" without value. This is caused by commit
|
||||
* 46004c39e26 and fixed in 48d9c8eb6eb0. See referenced
|
||||
* commits for more info.
|
||||
*
|
||||
* Just ignore this key/value pair. No processing is broken
|
||||
* due to this, as the git storage stores only metric SI type data.
|
||||
* In fact, the m unit is superfluous anyway.
|
||||
*/
|
||||
return;
|
||||
}
|
||||
report_error("Unknown cylinder key/value pair (%s/%s)", key, value);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue