mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kpty: move variable to the condition it is used in
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
f5c5f3cd63
commit
4d817fc100
1 changed files with 2 additions and 2 deletions
|
@ -146,8 +146,6 @@ bool KPty::open()
|
||||||
|
|
||||||
d->ownMaster = true;
|
d->ownMaster = true;
|
||||||
|
|
||||||
QByteArray ptyName;
|
|
||||||
|
|
||||||
// Find a master pty that we can open ////////////////////////////////
|
// Find a master pty that we can open ////////////////////////////////
|
||||||
|
|
||||||
// Because not all the pty animals are created equal, they want to
|
// Because not all the pty animals are created equal, they want to
|
||||||
|
@ -169,6 +167,8 @@ bool KPty::open()
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
QByteArray ptyName;
|
||||||
|
|
||||||
d->masterFd = ::posix_openpt(O_RDWR|O_NOCTTY);
|
d->masterFd = ::posix_openpt(O_RDWR|O_NOCTTY);
|
||||||
if (d->masterFd >= 0)
|
if (d->masterFd >= 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue