summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitar Petrovski <dimeptr@gmail.com>2012-10-20 17:25:43 +0200
committerDimitar Petrovski <dimeptr@gmail.com>2012-10-20 17:25:43 +0200
commitc048d5c85ebb94afb8543be5aca1f8a57c36525b (patch)
treebe39142e756cdf7d79f730f6418d8844c90a20fd
parent296fe61d7cf2f10dabd762ba29fe1cbf5a3368c5 (diff)
downloadvdr-plugin-eepg-c048d5c85ebb94afb8543be5aca1f8a57c36525b.tar.gz
vdr-plugin-eepg-c048d5c85ebb94afb8543be5aca1f8a57c36525b.tar.bz2
fix valgrind warinigs
-rw-r--r--setupeepg.c1
-rw-r--r--util.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/setupeepg.c b/setupeepg.c
index 54f8243..38f5b90 100644
--- a/setupeepg.c
+++ b/setupeepg.c
@@ -13,6 +13,7 @@
cSetupEEPG* cSetupEEPG::_setupEEPG = NULL;
cSetupEEPG::cSetupEEPG (void)
+:ConfDir(NULL)
{
OptPat = 1;
OrderInfo = 1;
diff --git a/util.c b/util.c
index 92164a6..428aeb8 100644
--- a/util.c
+++ b/util.c
@@ -121,7 +121,7 @@ void CleanString (unsigned char *String)
}
Src++;
}
- if (Spaces > 0) {
+ if (Spaces > 0 && String > Dst) {
Dst--;
*Dst = 0;
} else {