1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-24 17:57:34 +03:00

ptyfwd: add missing assertions for pty_forward_new

This commit is contained in:
Mike Yuan 2024-05-21 20:07:01 +08:00
parent 688b701168
commit d735753256
No known key found for this signature in database
GPG Key ID: 417471C0A40F58B3

View File

@ -763,6 +763,9 @@ int pty_forward_new(
struct winsize ws;
int r;
assert(master >= 0);
assert(ret);
f = new(PTYForward, 1);
if (!f)
return -ENOMEM;