From 3837f9ab492bcb791d278908cc2e7e4dc9a12217 Mon Sep 17 00:00:00 2001 From: anbr Date: Tue, 21 Dec 2010 20:57:28 +0100 Subject: release 0.1.5 from http://www.vdr-portal.de/board/thread.php?postid=845575#post845575 --- tools.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tools.c') diff --git a/tools.c b/tools.c index 06cfd34..f027a8f 100644 --- a/tools.c +++ b/tools.c @@ -15,9 +15,10 @@ cDirList::cDirList(cImageList &ImageList) cTokenizer *token = new cTokenizer(ImageList.GetDirContains(), "@"); for(int i = 1; i <= token->Count(); i++) { - asprintf(&buffer, "^%s$", token->GetToken(i)); - OptExclude(buffer); - FREENULL(buffer); + if(0 < asprintf(&buffer, "^%s$", token->GetToken(i))) { + OptExclude(buffer); + FREENULL(buffer); + } } OptSort((eFileList)DVDSwitchSetup.SortMode); -- cgit v1.2.3