Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit a998b157 authored by Greg Kaiser's avatar Greg Kaiser
Browse files

Fix file open check

fd.ok() returns a bool.  The NOT of that method will auto-cast to
a 0 or 1 as an int, and thus will never equal -1.  So our previous
check was always false.  We remove the int comparison to fix this.

Test: TreeHugger
Change-Id: I20ad5eae79622f680c5516df422a7fef7ff7966b
parent 1b2e16d6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment