From da77d3f784f5f359cfd15c40a08deac370f93a30 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Wed, 12 Mar 2003 23:04:41 +0000 Subject: max_pages should be > 0 CVS patchset: 4399 CVS date: 2003/03/12 23:04:41 --- src/input/input_pvr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/input/input_pvr.c b/src/input/input_pvr.c index a177ad4f2..6439820eb 100644 --- a/src/input/input_pvr.c +++ b/src/input/input_pvr.c @@ -37,7 +37,7 @@ * usage: * xine pvr:\!\! * - * $Id: input_pvr.c,v 1.7 2003/03/10 23:21:27 miguelfreitas Exp $ + * $Id: input_pvr.c,v 1.8 2003/03/12 23:04:41 miguelfreitas Exp $ */ #ifdef HAVE_CONFIG_H @@ -1069,7 +1069,8 @@ static input_plugin_t *open_plugin (input_class_t *cls_gen, xine_stream_t *strea aux = strchr(this->save_prefix, '!'); if( aux ) { aux[0] = '\0'; - this->max_page_age = atoi(aux+1); + if( atoi(aux+1) ) + this->max_page_age = atoi(aux+1); } } else { this->save_prefix=strdup(this->tmp_prefix); -- cgit v1.2.3