get rid of "uninitialized member" gcc warning

Change-Id: I486212829ec9309239645222e7f03f36ae4847f0
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
This commit is contained in:
Konstantin Ritt 2012-06-06 17:51:49 +03:00 committed by Qt by Nokia
parent 01d48e07d8
commit 22e6477185

View File

@ -73,8 +73,7 @@ static void qt_create_pipe(Q_PIPE *pipe, bool isInputPipe)
// Anomymous pipes do not support asynchronous I/O. Thus we
// create named pipes for redirecting stdout, stderr and stdin.
SECURITY_ATTRIBUTES secAtt = { 0 };
secAtt.nLength = sizeof(secAtt);
SECURITY_ATTRIBUTES secAtt = { sizeof(SECURITY_ATTRIBUTES), 0, false };
secAtt.bInheritHandle = isInputPipe; // The read handle must be non-inheritable for output pipes.
HANDLE hRead;