get rid of "uninitialized member" gcc warning
authorKonstantin Ritt <ritt.ks@gmail.com>
Wed, 6 Jun 2012 14:51:49 +0000 (17:51 +0300)
committerQt by Nokia <qt-info@nokia.com>
Wed, 6 Jun 2012 22:38:12 +0000 (00:38 +0200)
Change-Id: I486212829ec9309239645222e7f03f36ae4847f0
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
src/corelib/io/qprocess_win.cpp

index f7c2f96..f4469d6 100644 (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;