summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-19 19:47:06 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-19 19:47:06 -0800
commit4682002474e6929ce2c98afdd3e951f04d09f246 (patch)
tree443233a85e64a0267c5b4ba87620643bb632e958 /parse-xml.c
parent1301cb9664e432133b6ea5fdc99eb7b084a5f127 (diff)
downloadsubsurface-4682002474e6929ce2c98afdd3e951f04d09f246.tar.gz
Braces are better than indentation to scope if / if / else
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r--parse-xml.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/parse-xml.c b/parse-xml.c
index fcd61eb70..927a06431 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -2073,7 +2073,7 @@ extern int dm5_cylinders(void *handle, int columns, char **data, char **column)
cur_dive->cylinder[cur_cylinder_index].start.mbar = atoi(data[7]);
if (data[8] && atoi(data[8]) > 0 && atoi(data[8]) < 350000)
cur_dive->cylinder[cur_cylinder_index].end.mbar = (atoi(data[8]));
- if (data[6])
+ if (data[6]) {
/* DM5 shows tank size of 12 liters when the actual
* value is 0 (and using metric units). So we just use
* the same 12 liters when size is not available */
@@ -2081,6 +2081,7 @@ extern int dm5_cylinders(void *handle, int columns, char **data, char **column)
cur_dive->cylinder[cur_cylinder_index].type.size.mliter = 12000;
else
cur_dive->cylinder[cur_cylinder_index].type.size.mliter = (atof(data[6])) * 1000;
+ }
if (data[2])
cur_dive->cylinder[cur_cylinder_index].gasmix.o2.permille = atoi(data[2]) * 10;
if (data[3])