diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-12-13 20:36:02 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-13 20:40:31 +0100 |
commit | 207d1d0922d4e668cc6fac98be39e5a8b83ebc8a (patch) | |
tree | 3be961306c1dc4a3753485c6421f93c33d8393eb | |
parent | 9d3e3aa58dc4e76586b20a7b60c0495ae83a678f (diff) |
getty-generator: fix segfault when $container_ttys is not set
-rw-r--r-- | src/getty-generator/getty-generator.c | 2 |
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; |