mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 04:36:24 +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:
parent
6465fc7b73
commit
49cc6c4b3a
@ -425,6 +425,8 @@ tv_err:
|
|||||||
|
|
||||||
int dvd_parse_chapter_range(struct config *conf, const char *range){
|
int dvd_parse_chapter_range(struct config *conf, const char *range){
|
||||||
char *s, *t;
|
char *s, *t;
|
||||||
|
conf; /* prevent warning from GCC */
|
||||||
|
s = range;
|
||||||
dvd_chapter = 1;
|
dvd_chapter = 1;
|
||||||
dvd_last_chapter = 0;
|
dvd_last_chapter = 0;
|
||||||
if (*range && isdigit(*range)) {
|
if (*range && isdigit(*range)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user