Avoid compiler warning in latest patch
* pinfo.cc (_pinfo::cwd): Initialize s to avoid comiler warning. (_pinfo::cmdline): Ditto. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
575ec00a43
commit
6261fb30a9
|
@ -1,3 +1,8 @@
|
||||||
|
2015-06-08 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* pinfo.cc (_pinfo::cwd): Initialize s to avoid comiler warning.
|
||||||
|
(_pinfo::cmdline): Ditto.
|
||||||
|
|
||||||
2015-06-08 Corinna Vinschen <corinna@vinschen.de>
|
2015-06-08 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* pinfo.cc (_pinfo::root): Fake default root for native processes.
|
* pinfo.cc (_pinfo::root): Fake default root for native processes.
|
||||||
|
|
|
@ -892,7 +892,7 @@ open_commune_proc_parms (DWORD pid, PRTL_USER_PROCESS_PARAMETERS prupp)
|
||||||
char *
|
char *
|
||||||
_pinfo::cwd (size_t& n)
|
_pinfo::cwd (size_t& n)
|
||||||
{
|
{
|
||||||
char *s;
|
char *s = NULL;
|
||||||
if (!this || !pid)
|
if (!this || !pid)
|
||||||
return NULL;
|
return NULL;
|
||||||
if (ISSTATE (this, PID_NOTCYGWIN))
|
if (ISSTATE (this, PID_NOTCYGWIN))
|
||||||
|
@ -938,7 +938,7 @@ _pinfo::cwd (size_t& n)
|
||||||
char *
|
char *
|
||||||
_pinfo::cmdline (size_t& n)
|
_pinfo::cmdline (size_t& n)
|
||||||
{
|
{
|
||||||
char *s;
|
char *s = NULL;
|
||||||
if (!this || !pid)
|
if (!this || !pid)
|
||||||
return NULL;
|
return NULL;
|
||||||
if (ISSTATE (this, PID_NOTCYGWIN))
|
if (ISSTATE (this, PID_NOTCYGWIN))
|
||||||
|
|
Loading…
Reference in New Issue