From 64839d94aeb71b39a3b261f4d808f93be7316e96 Mon Sep 17 00:00:00 2001 From: albeu Date: Mon, 3 Mar 2003 10:59:07 +0000 Subject: 10L never blowup an option pointer !!!! That fix Gub's bug (sorry for the delay ;) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9520 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/tv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libmpdemux') diff --git a/libmpdemux/tv.c b/libmpdemux/tv.c index 7d886a7e71..a4b5404597 100644 --- a/libmpdemux/tv.c +++ b/libmpdemux/tv.c @@ -236,6 +236,7 @@ static int open_tv(tvi_handle_t *tvh) /* Handle channels names */ if (tv_param_channels) { + char** channels = tv_param_channels; mp_msg(MSGT_TV, MSGL_INFO, "TV Channels names detected.\n"); tv_channel_list = malloc(sizeof(tv_channels_t)); tv_channel_list->index=1; @@ -243,8 +244,8 @@ static int open_tv(tvi_handle_t *tvh) tv_channel_list->prev=NULL; tv_channel_current = tv_channel_list; - while (*tv_param_channels) { - char* tmp = *(tv_param_channels++); + while (*channels) { + char* tmp = *(channels++); char* sep = strchr(tmp,'-'); int i; struct CHANLIST cl; -- cgit v1.2.3