From 22e6477185b7a91ae7c3c2813f1ecaff29f3e962 Mon Sep 17 00:00:00 2001 From: Konstantin Ritt Date: Wed, 6 Jun 2012 17:51:49 +0300 Subject: get rid of "uninitialized member" gcc warning Change-Id: I486212829ec9309239645222e7f03f36ae4847f0 Reviewed-by: Joerg Bornemann --- src/corelib/io/qprocess_win.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/corelib/io/qprocess_win.cpp b/src/corelib/io/qprocess_win.cpp index f7c2f965d5..f4469d670c 100644 --- a/src/corelib/io/qprocess_win.cpp +++ b/src/corelib/io/qprocess_win.cpp @@ -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; -- cgit v1.2.3