diff options
author | Stephan Brunner <s.brunner@stephan-brunner.net> | 2022-11-01 10:46:59 +0100 |
---|---|---|
committer | Stephan Brunner <s.brunner@stephan-brunner.net> | 2022-11-01 10:46:59 +0100 |
commit | ad94c19554d7c6bb18ab2e251e4ee403ee0b7732 (patch) | |
tree | d76e2475309edbf7a778aeed2b9af7c1dc1d4567 /rfc | |
parent | 4e86498731a1e31e313e6f60f73344e0506fd29b (diff) | |
download | accel-ppp-ad94c19554d7c6bb18ab2e251e4ee403ee0b7732.tar.gz accel-ppp-ad94c19554d7c6bb18ab2e251e4ee403ee0b7732.zip |
Remove uninitialized argument from openpty()
As per the docs:
The openpty() function finds an available pseudoterminal and
returns file descriptors for the master and slave in amaster and
aslave. [...] If termp is not NULL, the terminal parameters
of the slave will be set to the values in termp. [...]
So openpty() would set the pty parameters to something undefined.
This undefinedness will be fixed by the later tcsetattr() call.
As a result, we don't need that parameter in the first place.
Additionally, fixes a -Wmaybe-uninitialized warning.
Diffstat (limited to 'rfc')
0 files changed, 0 insertions, 0 deletions