[vlc-commits] [Git][videolan/vlc][master] services_discovery: fix typo in variable name
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Thu Jul 16 01:58:46 UTC 2026
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
22368188 by Manikandan K. S. at 2026-07-16T03:10:52+02:00
services_discovery: fix typo in variable name
Rename 'list_lenght' to 'list_length'.
- - - - -
1 changed file:
- modules/services_discovery/upnp.cpp
Changes:
=====================================
modules/services_discovery/upnp.cpp
=====================================
@@ -1072,14 +1072,14 @@ bool MediaServer::addItem( IXML_Element* itemElement )
IXML_NodeList* p_resource_list = ixmlDocument_getElementsByTagName( (IXML_Document*) itemElement, "res" );
if ( !p_resource_list)
return false;
- int list_lenght = ixmlNodeList_length( p_resource_list );
- if (list_lenght <= 0 ) {
+ int list_length = ixmlNodeList_length( p_resource_list );
+ if (list_length <= 0 ) {
ixmlNodeList_free( p_resource_list );
return false;
}
input_item_t *p_item = NULL;
- for (int index = 0; index < list_lenght; index++)
+ for (int index = 0; index < list_length; index++)
{
IXML_Element* p_resource = ( IXML_Element* ) ixmlNodeList_item( p_resource_list, index );
const char* rez_type = ixmlElement_getAttribute( p_resource, "protocolInfo" );
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/223681883fee0ecfacfc46953b1faf1b2b0d9545
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/223681883fee0ecfacfc46953b1faf1b2b0d9545
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list