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
This commit is contained in:
albeu 2003-03-03 10:59:07 +00:00
parent 97f08af457
commit 64839d94ae
1 changed files with 3 additions and 2 deletions

View File

@ -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;