changeset 4344:7d9b4c874f73

Don't segfault with empty -chapter spec. Quiet one GCC warning.
author kmkaplan
date Fri, 25 Jan 2002 12:54:52 +0000
parents b0c8eed7473c
children 5d744e4f5b62
files libmpdemux/open.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/open.c	Thu Jan 24 23:02:59 2002 +0000
+++ b/libmpdemux/open.c	Fri Jan 25 12:54:52 2002 +0000
@@ -425,6 +425,8 @@
 
 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)) {