Swap conditions for ARRAY_FOR_EACH()
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 22 Aug 2014 05:08:57 +0000 (15:08 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 26 Aug 2014 01:04:42 +0000 (11:04 +1000)
commitbd8e3086939230a3501a6ee6ea3b2cdb1b2203a2
treea3a4a9d3f45f8eb3a1c5f6f498297645783eb9a5
parent7b66f16c2a30deb9ab50b3111b9b2611ffab27d6
Swap conditions for ARRAY_FOR_EACH()

The current conditions result in _elem being assigned _arr[i] before the
condition is checked. This is fine since we then break from the loop and don't
access it anyway, but it makes Coverity unhappy.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/libinput-util.h