summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 36a93695fb..feb58156ea 100644
--- a/src/getty-generator/getty-generator.c
+++ b/src/getty-generator/getty-generator.c
@@ -130,7 +130,7 @@ int main(int argc, char *argv[]) {
* the variable name we only support ptys here. */
r = getenv_for_pid(1, "container_ttys", &container_ttys);
- if (r >= 0) {
+ if (r > 0) {
char *w, *state;
size_t l;