Index: netXTransport.c =================================================================== --- netXTransport.c (revision 5795) +++ netXTransport.c (working copy) @@ -1315,11 +1315,16 @@ void DeviceNotifyCallback( const char* szInterfaceName, const char* szDeviceName, uint32_t ulDeviceIdentifier, NETX_INTERFACE_NOTIFICATION_E eNotify, void* hTransport, void* pvDevicePrivateData) { PNETX_TRANSPORT_INTERFACE_T ptInterface = netXTransportSearchInterface( szInterfaceName); - char szNewDeviceName[NXT_MAX_PATH]; - OS_Strvsprintf( szNewDeviceName, 16, "%s_%s", szInterfaceName, szDeviceName); - - netXTransportDeviceStateChange( ptInterface, NULL, szNewDeviceName, ulDeviceIdentifier, eNotify, hTransport, pvDevicePrivateData); + if (OS_Strlen(szInterfaceName)) + { + char szNewDeviceName[NXT_MAX_PATH] = ""; + OS_Strvsprintf( szNewDeviceName, 16, "%s_%s", szInterfaceName, szDeviceName); + netXTransportDeviceStateChange( ptInterface, NULL, szNewDeviceName, ulDeviceIdentifier, eNotify, hTransport, pvDevicePrivateData); + } else + { + netXTransportDeviceStateChange( ptInterface, NULL, (char*)szDeviceName, ulDeviceIdentifier, eNotify, hTransport, pvDevicePrivateData); + } } /*****************************************************************************/