hughsie / colord

Making color management just work
GNU General Public License v2.0
75 stars 51 forks source link

trivial: Fix error checking for sd_pid_get_session and sd_session_get_seat #92

Closed heftig closed 5 years ago

heftig commented 5 years ago

These functions can return a positive integer on success. Fix the conditions to only regard negative return values as errors.

Fixes commit 6ffe2f6aae4bdc8331cab1fd9379ed8aef759749.