summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/login/multi-seat-x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/multi-seat-x.c b/src/login/multi-seat-x.c
index 7a5d3b16e7..d0845e7cae 100644
--- a/src/login/multi-seat-x.c
+++ b/src/login/multi-seat-x.c
@@ -92,7 +92,7 @@ int main(int argc, char *argv[]) {
dn = udev_device_get_devnode(d);
- if (!dn) {
+ if (dn) {
device_node = strdup(dn);
if (!device_node) {
udev_device_unref(d);