[Libreoffice-commits] core.git: desktop/source

Stephan Bergmann sbergman at redhat.com
Fri Jan 6 10:18:28 UTC 2017


 desktop/source/app/cmdlinehelp.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit b12b4fdaf63dd4ae350cf95b5d89a9dbad107abd
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Jan 6 11:18:02 2017 +0100

    Work around clang-cl -Werror,-Wmissing-field-initializers
    
    ...the same way as in other uses of GetStartupInfo
    
    Change-Id: Ieeadf028d15c915df32e055e3725513b2047da4d

diff --git a/desktop/source/app/cmdlinehelp.cxx b/desktop/source/app/cmdlinehelp.cxx
index 26ce708..89ef21a 100644
--- a/desktop/source/app/cmdlinehelp.cxx
+++ b/desktop/source/app/cmdlinehelp.cxx
@@ -182,7 +182,8 @@ namespace desktop
                     hErr = GetStdHandle(STD_ERROR_HANDLE);
                 if (hOut == NULL) // application does not have associated standard handles
                 {
-                    STARTUPINFOA aStartupInfo{ sizeof(aStartupInfo) };
+                    STARTUPINFOA aStartupInfo;
+                    aStartupInfo.cb = sizeof(aStartupInfo);
                     GetStartupInfoA(&aStartupInfo);
                     if ((aStartupInfo.dwFlags & STARTF_USESTDHANDLES) == STARTF_USESTDHANDLES)
                     {


More information about the Libreoffice-commits mailing list