mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
core: ignore erroneous quotes as well
A small redo of 78bafe8f62
. The quotes cause the original
functionality not to work. Ignore them as well.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
This commit is contained in:
parent
6e411cc67d
commit
1fee77487b
1 changed files with 4 additions and 4 deletions
|
@ -394,11 +394,11 @@ 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) {
|
||||
if ((*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.
|
||||
* of a lonely "m" or m<single quote> without value. This
|
||||
* is caused by commit 46004c39e26 and fixed in 48d9c8eb6eb0 and
|
||||
* b984fb98c38e4. 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.
|
||||
|
|
Loading…
Reference in a new issue