Skip to content

Commit

Permalink
subtitles: fix potential invalid pointer use
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Guillem <[email protected]>
  • Loading branch information
robUx4 authored and tguillem committed May 20, 2016
1 parent 4a4e2eb commit 0692133
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/input/subtitles.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0692133

Please sign in to comment.