diff -r 9ade4c5e5db8 -r 5b6a77d85cf7 gmyth-upnp/src/gmyth_upnp.c --- a/gmyth-upnp/src/gmyth_upnp.c Wed May 23 19:21:26 2007 +0100 +++ b/gmyth-upnp/src/gmyth_upnp.c Wed May 23 21:49:19 2007 +0100 @@ -323,8 +323,9 @@ devName = cg_upnp_device_getfriendlyname(childDev); dev_url = cg_upnp_device_getlocationfromssdppacket( childDev ); gmyth_debug( "Device's friendly name = %s, and device's URL = %s\n", devName, dev_url ); - if ( ( upnp_dev_found = ( g_strstr_len( devName, strlen( devName ), mythtvFriendlyName ) != NULL ) ) == TRUE ) + if ( ( g_strstr_len( devName, strlen( devName ), mythtvFriendlyName ) != NULL ) == TRUE ) { + upnp_dev_found = TRUE; /* stores the last UDN number ID */ *udn = cg_upnp_device_getudn( childDev ); /* *mythtv_servers_lst = g_list_append( *mythtv_servers_lst, dev_url ); */