summaryrefslogtreecommitdiff
path: root/imagelist-item.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 /imagelist-item.c
parent2906f2d1b7e1c5931b3d05156569d6061eb6b9b5 (diff)
downloadvdr-plugin-dvdswitch-0.1.5.tar.gz
vdr-plugin-dvdswitch-0.1.5.tar.bz2
release 0.1.5 from http://www.vdr-portal.de/board/thread.php?postid=845575#post8455750.1.5
Diffstat (limited to 'imagelist-item.c')
-rw-r--r--imagelist-item.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/imagelist-item.c b/imagelist-item.c
index 4201c4a..04b1b78 100644
--- a/imagelist-item.c
+++ b/imagelist-item.c
@@ -32,8 +32,11 @@ void cImageListItem::Edit(const char *lname, const char *sname, eFileInfo type,
LName = lname ? strdup(lname) : NULL;
SName = sname ? strdup(sname) : NULL;
- if(type == tFile && value && value[0] != '.')
- asprintf(&Value, ".%s", value);
+ if(type == tFile && value && value[0] != '.') {
+ if(0 >= asprintf(&Value, ".%s", value)) {
+ return;
+ }
+ }
else
Value = value ? strdup(value) : NULL;