diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2017-02-14 11:04:24 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2017-02-14 11:04:24 +0100 |
commit | 71601e363e730bc073dcc435da8de1d0e3453436 (patch) | |
tree | 3525fb4e1cf6ac612a99abfb6fba6096ede0174a /config.c | |
parent | 9b9d15438e37e968940b0d4056ae5f40202a9257 (diff) | |
download | vdr-71601e363e730bc073dcc435da8de1d0e3453436.tar.gz vdr-71601e363e730bc073dcc435da8de1d0e3453436.tar.bz2 |
Fixed setting the local machine's SVDRP host name
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.c 4.4 2015/09/13 11:09:44 kls Exp $ + * $Id: config.c 4.5 2017/02/14 11:02:48 kls Exp $ */ #include "config.h" @@ -640,7 +640,7 @@ bool cSetup::Parse(const char *Name, const char *Value) else if (!strcasecmp(Name, "EPGLinger")) EPGLinger = atoi(Value); else if (!strcasecmp(Name, "SVDRPTimeout")) SVDRPTimeout = atoi(Value); else if (!strcasecmp(Name, "SVDRPPeering")) SVDRPPeering = atoi(Value); - else if (!strcasecmp(Name, "SVDRPHostName")) strn0cpy(SVDRPHostName, Value, sizeof(SVDRPHostName)); + else if (!strcasecmp(Name, "SVDRPHostName")) { if (!*SVDRPHostName) strn0cpy(SVDRPHostName, Value, sizeof(SVDRPHostName)); } else if (!strcasecmp(Name, "SVDRPdefaultHost")) strn0cpy(SVDRPDefaultHost, Value, sizeof(SVDRPDefaultHost)); else if (!strcasecmp(Name, "ZapTimeout")) ZapTimeout = atoi(Value); else if (!strcasecmp(Name, "ChannelEntryTimeout")) ChannelEntryTimeout= atoi(Value); |