summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-21 22:00:21 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-21 22:00:21 -0700
commit2c0223fbb206b0552f137d0fb32d8bda848102b7 (patch)
tree0c069a732da2689287e166c52e3ddc2d6c3bfa5d
parent99bcdb3f30c5e9dffaf2bf037b72ee596d6c6908 (diff)
downloadsubsurface-2c0223fbb206b0552f137d0fb32d8bda848102b7.tar.gz
Fix missing curly braces that change control flow
Indentation thankfully is not the same as scope. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--parse-xml.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/parse-xml.c b/parse-xml.c
index 45ac984df..381bd3823 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -2996,9 +2996,10 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size)
found = false;
for (i = 0; i < cur_cylinder_index; ++i) {
- if (cur_dive->cylinder[i].gasmix.o2.permille == ptr[6] * 10 && cur_dive->cylinder[i].gasmix.he.permille == ptr[7] * 10)
+ if (cur_dive->cylinder[i].gasmix.o2.permille == ptr[6] * 10 && cur_dive->cylinder[i].gasmix.he.permille == ptr[7] * 10) {
found = true;
break;
+ }
}
if (!found) {
cylinder_start();