# HG changeset patch # User Naoya OYAMA # Date 1352298382 -32400 # Node ID a0bc3700a49669d7f3c94d87a089b1a47ec0f107 # Parent 1d6674183e76e8c8e611805068d8dd6ca6b968c5 Fix problem: If channel list file does not exist, abnormal termination. diff -r 1d6674183e76 -r a0bc3700a496 src/recpt1.c --- a/src/recpt1.c Wed Nov 07 22:54:19 2012 +0900 +++ b/src/recpt1.c Wed Nov 07 23:26:22 2012 +0900 @@ -1280,6 +1280,14 @@ channel_list = open_list_file("BS", NULL); channel_list = open_list_file("CS", channel_list); } + if(!channel_list) { + fprintf(stderr, "channel list file does not found.\n" + "please create channel list file first.\n" + "usage:\n" + "$ channelscan_pt1.sh\n"); + use_dlna = FALSE; + break; + } tdata.stream_queue = stream_queue; tdata.streamer = malloc(sizeof(streamer)); if ( tdata.streamer == NULL ) {