diff -r 9ade4c5e5db8 -r 48d1f2628be1 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 Thu May 24 01:25: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 ); */