diff options
author | Christian Wieninger <cwieninger@gmx.de> | 2011-09-22 19:43:08 +0200 |
---|---|---|
committer | Christian Wieninger <cwieninger@gmx.de> | 2011-09-22 19:43:08 +0200 |
commit | eff341390c079060d0904a53b7eebe84e2315f3a (patch) | |
tree | d45d902e7a7022a95a3e9c58346d88c45e0da517 /rcfile.c | |
parent | be2c5ff1bfdff45d384981816ef692f0179a7f15 (diff) | |
download | vdr-plugin-epgsearch-eff341390c079060d0904a53b7eebe84e2315f3a.tar.gz vdr-plugin-epgsearch-eff341390c079060d0904a53b7eebe84e2315f3a.tar.bz2 |
Delete trailing whitespace, thanks to Ville Skyttä for patches
Diffstat (limited to 'rcfile.c')
-rw-r--r-- | rcfile.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -44,12 +44,12 @@ cRCLine::~cRCLine() bool cRCLine::Parse(char *s) { char *p = strchr(s, '='); - if (p) + if (p) { *p = 0; char *Name = compactspace(s); char *Value = compactspace(p + 1); - if (*Name) + if (*Name) { name = strdup(Name); value = strdup(Value); @@ -71,15 +71,15 @@ cRCFile::cRCFile() bool cRCFile::Load(const char *FileName) { - if (cConfig<cRCLine>::Load(FileName, true)) + if (cConfig<cRCLine>::Load(FileName, true)) { bool result = true; - for (cRCLine *l = First(); l; l = Next(l)) + for (cRCLine *l = First(); l; l = Next(l)) { bool error = false; if (!Parse(l->Name(), l->Value())) error = true; - if (error) + if (error) { LogFile.eSysLog("ERROR: unknown parameter: %s = %s", l->Name(), l->Value()); result = false; |