Commit 06921332 authored by Steve Lhomme's avatar Steve Lhomme Committed by Thomas Guillem

subtitles: fix potential invalid pointer use

Signed-off-by: Thomas Guillem's avatarThomas Guillem <thomas@gllm.fr>
parent 4a4e2eb8
......@@ -312,6 +312,8 @@ int subtitles_Detect( input_thread_t *p_this, char *psz_path, const char *psz_na
size_t i_len = strlen( psz_dir );
const char *psz_format;
if ( i_len == 0 )
continue;
if( psz_dir[i_len - 1] == DIR_SEP_CHAR )
psz_format = "%s%s";
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment