summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-04 15:07:47 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-04 15:14:14 -0700
commit85921592b052e2be867f049306abd28e69c978ae (patch)
tree2fc8a51a2d1fa1c95fe10f25bbd0d400e3cd601a /parse-xml.c
parente58fa7b9b506d5bb30268060279bc8dcbbeb99ea (diff)
downloadsubsurface-85921592b052e2be867f049306abd28e69c978ae.tar.gz
Properly save/restore cylinder description string
We saved it under the wrong name, and didn't restore it at all. Fix. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r--parse-xml.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse-xml.c b/parse-xml.c
index 75959d682..b123bb39f 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -658,6 +658,8 @@ static void try_to_fill_dive(struct dive *dive, const char *name, char *buf)
return;
if (MATCH(".cylinder.workpressure", pressure, &dive->cylinder[cylinder_index].type.workingpressure))
return;
+ if (MATCH(".cylinder.description", utf8_string, &dive->cylinder[cylinder_index].type.description))
+ return;
if (MATCH(".o2", gasmix, &dive->cylinder[cylinder_index].gasmix.o2))
return;