From c048d5c85ebb94afb8543be5aca1f8a57c36525b Mon Sep 17 00:00:00 2001 From: Dimitar Petrovski Date: Sat, 20 Oct 2012 17:25:43 +0200 Subject: fix valgrind warinigs --- setupeepg.c | 1 + util.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.3