summaryrefslogtreecommitdiff
path: root/src/uaccess.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uaccess.c')
-rw-r--r--src/uaccess.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uaccess.c b/src/uaccess.c
index 2f6ac43754..1683707977 100644
--- a/src/uaccess.c
+++ b/src/uaccess.c
@@ -44,7 +44,7 @@ int main(int argc, char *argv[]) {
}
path = argv[1];
- seat = argc >= 3 ? argv[2] : "seat0";
+ seat = argc < 3 || isempty(argv[2]) ? "seat0" : argv[2];
p = strappend("/run/systemd/seats/", seat);
if (!p) {