mirror of
https://github.com/glest/glest-source.git
synced 2025-09-27 16:09:00 +02:00
- updated code to protect against null pointers and uninitialized values and threading issues
This commit is contained in:
@@ -2465,7 +2465,7 @@ int UPNP_Tools::upnp_init(void *param) {
|
||||
}
|
||||
|
||||
dev = devlist;
|
||||
while (dev) {
|
||||
while (dev && dev->st) {
|
||||
if (strstr(dev->st, "InternetGatewayDevice")) {
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user