diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-19 10:06:11 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-19 10:06:11 -0700 |
commit | 04f372f8aa5b4f9ba462e0e93b76f3dde6af00f1 (patch) | |
tree | 9aab2a447096a119598866f4c2330624bdd7b40a /parse-xml.c | |
parent | 0a33d0bd7d52c1bee6307926ff25d4037fb0e3aa (diff) | |
download | subsurface-04f372f8aa5b4f9ba462e0e93b76f3dde6af00f1.tar.gz |
Parse the xml sample cylinder index properly
We would save it in the xml file, but then not actually read it back
properly. Oops. Not that we actually have any multi-tank dives yet, so
it doesn't matter. Yet.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r-- | parse-xml.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/parse-xml.c b/parse-xml.c index 6a08a3845..1b0c44985 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -604,6 +604,8 @@ static void try_to_fill_sample(struct sample *sample, const char *name, char *bu return; if (MATCH(".sample.cylpress", pressure, &sample->cylinderpressure)) return; + if (MATCH(".sample.cylinderindex", get_index, &sample->cylinderindex)) + return; if (MATCH(".sample.depth", depth, &sample->depth)) return; if (MATCH(".sample.temp", temperature, &sample->temperature)) |