The following commit has been merged in the master branch:
commit 7b96fc5abbacdaf7e9f18b74646bfbee532caf8f
Author: Andrei Zavada <[email protected]>
Date:   Tue Apr 23 16:40:01 2013 +0300

    shorter break out of nested cycle when checking for channel uniqueness

diff --git a/src/libsigfile/edf.cc b/src/libsigfile/edf.cc
index eb8002e..57b9a8d 100644
--- a/src/libsigfile/edf.cc
+++ b/src/libsigfile/edf.cc
@@ -816,11 +816,14 @@ _parse_header()
 
       // are channels unique?
        for ( auto &H : channels )
-               for ( auto &J : channels )
+               for ( auto &J : channels ) {
                        if ( &J != &H && J.label == H.label ) {
                                _status |= dup_channels;
-                               break;
+                               goto outer_break;
                        }
+               }
+outer_break:
+
        return 0;
 }
 

-- 
Sleep experiment manager

_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to