Hi,

It's a simple issue, it seems that someone forgot the braces... please see
attached patch.

All the best,
Marcos
From 55c8ee5c663593ef573decc73e5df1848e97a697 Mon Sep 17 00:00:00 2001
From: Marcos CARDINOT <[email protected]>
Date: Sun, 22 Mar 2015 22:36:50 -0300
Subject: [PATCH] parse-xml::parse_dlf_buffer - missing braces around if
 statement

Nesting level does not match indentation.

Signed-off-by: Marcos CARDINOT <[email protected]>
---
 parse-xml.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/parse-xml.c b/parse-xml.c
index a42f8c8..34c1b4c 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -2940,9 +2940,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();
-- 
1.9.1

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to