mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-19 12:59:21 +08:00
Cygwin: CW_CMDLINE_ALLOC: fix a pontentially undefined return value
cmdline has to be initialized, otherwise the return value is undefined in case generating the command line fails. Fixes: 732afede9358 ("Cygwin: redefine CW_CMDLINE to CW_CMDLINE_ALLOC") Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
76760707ec
commit
92b7ba4bb8
@ -349,7 +349,7 @@ cygwin_internal (cygwin_getinfo_types t, ...)
|
||||
{
|
||||
size_t n;
|
||||
char *cmdline_cheap;
|
||||
char *cmdline;
|
||||
char *cmdline = NULL;
|
||||
|
||||
pid_t pid = va_arg (arg, pid_t);
|
||||
pinfo p (pid);
|
||||
|
Loading…
x
Reference in New Issue
Block a user