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:
parent
688b701168
commit
d735753256
@ -763,6 +763,9 @@ int pty_forward_new(
|
|||||||
struct winsize ws;
|
struct winsize ws;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
|
assert(master >= 0);
|
||||||
|
assert(ret);
|
||||||
|
|
||||||
f = new(PTYForward, 1);
|
f = new(PTYForward, 1);
|
||||||
if (!f)
|
if (!f)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user