summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOBATA Akio <obache@users.noreply.github.com>2016-07-15 17:39:24 +0900
committerEric Koegel <eric.koegel@gmail.com>2016-07-15 19:07:06 +0300
commit8f743098dbe9827b21d72a1eb1aa027825a8d2a4 (patch)
treedb58a2761be34e0e399fb75971cee19e8d4261b0
parenteb2c4bb19162f96dfde46f4447fdc33ea13bff19 (diff)
downloadConsoleKit2-1.0.tar.gz
Fix a reversed condition for invalid device on NetBSD1.0
-rw-r--r--src/ck-sysdeps-netbsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ck-sysdeps-netbsd.c b/src/ck-sysdeps-netbsd.c
index bc8eb13..37b42a3 100644
--- a/src/ck-sysdeps-netbsd.c
+++ b/src/ck-sysdeps-netbsd.c
@@ -113,7 +113,7 @@ ck_process_stat_get_tty (CkProcessStat *stat)
{
g_return_val_if_fail (stat != NULL, NULL);
- if (stat->tty != NODEV){
+ if (stat->tty == NODEV){
return NULL;
}