• Zebediah Figura's avatar
    ntdll: Do not check for malloc() failure in get_initial_environment. · f5b92137
    Zebediah Figura authored
    This is called early in process startup; malloc() should definitely never fail here.
    
    This fixes an uninitialized variable warning with gcc 12.2:
    
    In function ‘build_initial_params’,
        inlined from ‘init_startup_info’ at ../wine/dlls/ntdll/unix/env.c:2004:18:
    ../wine/dlls/ntdll/unix/env.c:1910:12: error: ‘env_pos’ may be used uninitialized [-Werror=maybe-uninitialized]
     1910 |     path = get_env_var( env, env_pos, pathW, 4 );
          |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../wine/dlls/ntdll/unix/env.c: In function ‘init_startup_info’:
    ../wine/dlls/ntdll/unix/env.c:1903:18: note: ‘env_pos’ declared here
     1903 |     SIZE_T size, env_pos, env_size;
          |                  ^~~~~~~
    f5b92137
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
nls Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...