summaryrefslogtreecommitdiff
path: root/src/getty-generator
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-12-13 20:36:02 +0100
committerLennart Poettering <lennart@poettering.net>2013-12-13 20:40:31 +0100
commit207d1d0922d4e668cc6fac98be39e5a8b83ebc8a (patch)
tree3be961306c1dc4a3753485c6421f93c33d8393eb /src/getty-generator
parent9d3e3aa58dc4e76586b20a7b60c0495ae83a678f (diff)
getty-generator: fix segfault when $container_ttys is not set
Diffstat (limited to 'src/getty-generator')
-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;