1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed initializing channel name when editing a new channel

This commit is contained in:
Klaus Schmidinger 2010-05-13 13:32:01 +02:00
parent 88dc4e3351
commit 3c51267763

3
menu.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: menu.c 2.22 2010/05/02 14:28:26 kls Exp $ * $Id: menu.c 2.23 2010/05/13 13:32:01 kls Exp $
*/ */
#include "menu.h" #include "menu.h"
@ -210,6 +210,7 @@ cMenuEditChannel::cMenuEditChannel(cChannel *Channel, bool New)
{ {
channel = Channel; channel = Channel;
sourceParam = NULL; sourceParam = NULL;
*name = 0;
if (channel) { if (channel) {
data = *channel; data = *channel;
strn0cpy(name, data.name, sizeof(name)); strn0cpy(name, data.name, sizeof(name));