summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/getty-generator/getty-generator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/getty-generator/getty-generator.c b/src/getty-generator/getty-generator.c
index feb58156ea..aeb6d71d74 100644
--- a/src/getty-generator/getty-generator.c
+++ b/src/getty-generator/getty-generator.c
@@ -147,7 +147,7 @@ int main(int argc, char *argv[]) {
t = tty;
/* Then, make sure it's actually a pty */
- t = path_startswith(tty, "pts/");
+ t = path_startswith(t, "pts/");
if (!t)
continue;