From: Mathieu BĂ©rard Date: Thu, 17 Aug 2006 16:16:44 +0000 (+0000) Subject: Fix critial bug in omnibook_io_match : add X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=13c195cef3893dc915fe0431ba4073e06ff356ea;p=omnibook.git Fix critial bug in omnibook_io_match : add forgotten braces after if statement. --- 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; }