summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
authoranbr <vdr07@deltab.de>2010-12-21 20:57:28 +0100
committeranbr <vdr07@deltab.de>2010-12-21 20:57:28 +0100
commit3837f9ab492bcb791d278908cc2e7e4dc9a12217 (patch)
tree106f1089da730c02a8c5f27e1b21f9767fc3d66a /tools.c
parent2906f2d1b7e1c5931b3d05156569d6061eb6b9b5 (diff)
downloadvdr-plugin-dvdswitch-3837f9ab492bcb791d278908cc2e7e4dc9a12217.tar.gz
vdr-plugin-dvdswitch-3837f9ab492bcb791d278908cc2e7e4dc9a12217.tar.bz2
release 0.1.5 from http://www.vdr-portal.de/board/thread.php?postid=845575#post8455750.1.5
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c7
1 files changed, 4 insertions, 3 deletions
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);