]> git.sesse.net Git - vlc/commitdiff
Lua: fix typo on previous commit
authorFabio Ritrovato <sephiroth87@videolan.org>
Thu, 11 Mar 2010 17:04:22 +0000 (18:04 +0100)
committerFabio Ritrovato <sephiroth87@videolan.org>
Thu, 11 Mar 2010 17:04:22 +0000 (18:04 +0100)
modules/misc/lua/libs/sd.c

index f377ba11453f35b00b37e8e0d832d186aa0b466c..d1580f053fc26140d79ba2e531a44772c40164e2 100644 (file)
@@ -291,8 +291,8 @@ static int vlclua_node_add_node( lua_State *L )
                                                                 name, 0, NULL, 0,
                                                                 -1, ITEM_TYPE_NODE );
                 free( name );
+                lua_getfield( L, -1, "arturl" );
                 if( lua_isstring( L, -1 ) && strcmp( lua_tostring( L, -1 ), "" ) )
-                if( lua_isstring( L, -1 ) )
                 {
                     char *psz_value = strdup( lua_tostring( L, -1 ) );
                     EnsureUTF8( psz_value );