summaryrefslogtreecommitdiff
path: root/dvdlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'dvdlist.c')
-rw-r--r--dvdlist.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/dvdlist.c b/dvdlist.c
index bc37e97..d5d4da7 100644
--- a/dvdlist.c
+++ b/dvdlist.c
@@ -39,9 +39,10 @@ bool cDVDList::Load(const char *dir, eFileList smode, bool sub)
char *extexp = NULL;
for(i = 1; i <= token->Count(); i++)
{
- asprintf(&extexp, "%s$", token->GetToken(i));
- fList->OptInclude(extexp, tFile);
- FREENULL(extexp);
+ if(0 < asprintf(&extexp, "%s$", token->GetToken(i))) {
+ fList->OptInclude(extexp, tFile);
+ FREENULL(extexp);
+ }
}
delete(token);
}