mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix missing curly braces that change control flow
Indentation thankfully is not the same as scope. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
99bcdb3f30
commit
2c0223fbb2
1 changed files with 2 additions and 1 deletions
|
@ -2996,9 +2996,10 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size)
|
||||||
|
|
||||||
found = false;
|
found = false;
|
||||||
for (i = 0; i < cur_cylinder_index; ++i) {
|
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;
|
found = true;
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!found) {
|
if (!found) {
|
||||||
cylinder_start();
|
cylinder_start();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue