summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authoralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-03 10:59:07 +0000
committeralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-03-03 10:59:07 +0000
commit64839d94aeb71b39a3b261f4d808f93be7316e96 (patch)
tree99651fc2257ab60d8a49c5af8716fb7094487896 /libmpdemux
parent97f08af457fac86cda92a79f0840e4920590930e (diff)
downloadmpv-64839d94aeb71b39a3b261f4d808f93be7316e96.tar.bz2
mpv-64839d94aeb71b39a3b261f4d808f93be7316e96.tar.xz
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
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/tv.c5
1 files changed, 3 insertions, 2 deletions
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;