Skip to content
Snippets Groups Projects
Commit f275e555 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

lua: do not compute NULL+0

parent e37b6421
No related branches found
No related tags found
1 merge request!679Avoid NULL pointer arithmetic
Pipeline #142567 passed with stage
in 18 minutes and 48 seconds
......@@ -250,7 +250,7 @@ int vlclua_scripts_batch_execute( vlc_object_t *p_this,
msg_Dbg( p_this, "Trying Lua scripts in %s", *ppsz_dir );
int i_files = vlc_scandir( *ppsz_dir, &ppsz_filelist, file_select,
file_compare );
if( i_files < 0 )
if( i_files <= 0 )
continue;
char **ppsz_file = ppsz_filelist;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment