Logical disjunction always evaluates to true in services/panel-service.c

Bug #1500519 reported by Colin Ian King
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Unity
New
Undecided
Unassigned
unity (Ubuntu)
New
Medium
Unassigned

Bug Description

Line 673 of services/panel-service.c:

else if (entry && (event->detail == 2 || event->detail >= 4 || event->detail <= 7))

The clause: (event->detail == 2 || event->detail >= 4 || event->detail <= 7) always evaluates to true. Is that the intention. Anyhow, checking against event detail hard coded values is a bit opaque too, so who knows.

And line 680 too:

if (event->detail >= 4 || event->detail <= 7)

this always evaluates as true too. Think that's a bug.

Changed in unity (Ubuntu):
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.