]> Devoid-pointer.net GitWeb - omnibook.git/commitdiff
Fix critial bug in omnibook_io_match : add
authorMathieu Bérard <mathieu.berard@crans.org>
Thu, 17 Aug 2006 16:16:44 +0000 (16:16 +0000)
committerMathieu Bérard <mathieu.berard@crans.org>
Thu, 17 Aug 2006 16:16:44 +0000 (16:16 +0000)
forgotten braces after if statement.

ec.c

diff --git a/ec.c b/ec.c
index bd206b3185f38bd74d4a0dfff28a8a26bd7ed2b0..60cadfc82c4120021914a1496e48760ad6cdcc6b 100644 (file)
--- 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;
 }