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:
Corinna Vinschen 2015-06-08 21:55:11 +02:00
parent 575ec00a43
commit 6261fb30a9
2 changed files with 7 additions and 2 deletions

View File

@ -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.

View File

@ -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))