diff options
author | anbr <vdr07@deltab.de> | 2010-12-21 20:57:28 +0100 |
---|---|---|
committer | anbr <vdr07@deltab.de> | 2010-12-21 20:57:28 +0100 |
commit | 3837f9ab492bcb791d278908cc2e7e4dc9a12217 (patch) | |
tree | 106f1089da730c02a8c5f27e1b21f9767fc3d66a /tools.c | |
parent | 2906f2d1b7e1c5931b3d05156569d6061eb6b9b5 (diff) | |
download | vdr-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.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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); |