From 13c195cef3893dc915fe0431ba4073e06ff356ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mathieu=20B=C3=A9rard?= Date: Thu, 17 Aug 2006 16:16:44 +0000 Subject: [PATCH] Fix critial bug in omnibook_io_match : add forgotten braces after if statement. --- ec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ec.c b/ec.c index bd206b3..60cadfc 100644 --- a/ec.c +++ b/ec.c @@ -275,11 +275,12 @@ void *omnibook_io_match(const struct omnibook_io_operation *io_op) int i; void *matched = NULL; for (i = 0; io_op[i].ectypes ; i++) { - if (omnibook_ectype & io_op[i].ectypes) + if (omnibook_ectype & io_op[i].ectypes) { if (io_op[i].type == CDI && omnibook_cdimode_init()) continue; matched = (void *) &io_op[i]; break; + } } return matched; } -- 2.43.5