# HG changeset patch # User albeu # Date 1046689147 0 # Node ID 34b636d19268ba35b55636f006c12c4583ac08c1 # Parent 182d6c136095daaf0b62d744e883183a98b9edcf 10L never blowup an option pointer !!!! That fix Gub's bug (sorry for the delay ;) diff -r 182d6c136095 -r 34b636d19268 libmpdemux/tv.c --- a/libmpdemux/tv.c Sun Mar 02 21:21:56 2003 +0000 +++ b/libmpdemux/tv.c Mon Mar 03 10:59:07 2003 +0000 @@ -236,6 +236,7 @@ /* 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 @@ 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;