1
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 06:03:45 +01:00

Don't segfault with empty -chapter spec.

Quiet one GCC warning.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4345 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
kmkaplan 2002-01-25 12:54:52 +00:00
parent 6465fc7b73
commit 49cc6c4b3a

View File

@ -425,6 +425,8 @@ tv_err:
int dvd_parse_chapter_range(struct config *conf, const char *range){
char *s, *t;
conf; /* prevent warning from GCC */
s = range;
dvd_chapter = 1;
dvd_last_chapter = 0;
if (*range && isdigit(*range)) {