fix a null pointer bug update

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2165 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
joss17 2010-01-31 19:45:35 +00:00
parent 906cc25379
commit 15e3a0d075

View File

@ -1027,7 +1027,7 @@ error:
char* CUPnPControlPoint::getInternalIpAddress() char* CUPnPControlPoint::getInternalIpAddress()
{ {
char * addr = UpnpGetServerIpAddress(); char * addr = UpnpGetServerIpAddress();
if (addr = NULL) { if (addr == NULL) {
addr = "127.0.0.1"; addr = "127.0.0.1";
} }
return addr; return addr;