mirror of
https://github.com/systemd/systemd.git
synced 2026-07-16 04:20:34 +00:00
getty-generator: fix segfault when $container_ttys is not set
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user