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: 732afede93
("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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue