summaryrefslogtreecommitdiffstats
path: root/core/load-git.c
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-12-20 14:37:03 +0100
committerGravatar Jan Mulder <jlmulder@xs4all.nl>2017-12-20 15:39:54 +0100
commit1fee77487b5cf1ebdc17c994ecaa45dd6f574842 (patch)
treeecad4b4086e48bd4ce94385fabc9655fb3034baa /core/load-git.c
parent6e411cc67d0c619574c5bf7b54e1b0a603c7c3c3 (diff)
downloadsubsurface-1fee77487b5cf1ebdc17c994ecaa45dd6f574842.tar.gz
core: ignore erroneous quotes as well
A small redo of 78bafe8f620a066. The quotes cause the original functionality not to work. Ignore them as well. Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
Diffstat (limited to 'core/load-git.c')
-rw-r--r--core/load-git.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/load-git.c b/core/load-git.c
index 6fa037bf6..6ddee4a54 100644
--- a/core/load-git.c
+++ b/core/load-git.c
@@ -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.