Browse Source

getty-generator: fix segfault when $container_ttys is not set

keep-around/ba91431154ad7bac82ddf0a540ec1b40db62d782
Lennart Poettering 9 years ago
parent
commit
207d1d0922
  1. 2
      src/getty-generator/getty-generator.c

2
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;

Loading…
Cancel
Save