diff options
author | Dimitar Petrovski <dimeptr@gmail.com> | 2012-10-20 17:25:43 +0200 |
---|---|---|
committer | Dimitar Petrovski <dimeptr@gmail.com> | 2012-10-20 17:25:43 +0200 |
commit | c048d5c85ebb94afb8543be5aca1f8a57c36525b (patch) | |
tree | be39142e756cdf7d79f730f6418d8844c90a20fd | |
parent | 296fe61d7cf2f10dabd762ba29fe1cbf5a3368c5 (diff) | |
download | vdr-plugin-eepg-c048d5c85ebb94afb8543be5aca1f8a57c36525b.tar.gz vdr-plugin-eepg-c048d5c85ebb94afb8543be5aca1f8a57c36525b.tar.bz2 |
fix valgrind warinigs
-rw-r--r-- | setupeepg.c | 1 | ||||
-rw-r--r-- | util.c | 2 |
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; @@ -121,7 +121,7 @@ void CleanString (unsigned char *String) } Src++; } - if (Spaces > 0) { + if (Spaces > 0 && String > Dst) { Dst--; *Dst = 0; } else { |