diff options
author | Jochen Dolze <vdr@dolze.de> | 2017-03-20 18:08:49 +0100 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2017-03-20 18:08:49 +0100 |
commit | ec7bd920d94e55f2d21bfa076b7e900b7b2b7537 (patch) | |
tree | 41d97df2a59f0a281c4bb2323126dead51ee89e6 /dist/epgdata2xmltv | |
parent | 7a7331beada82c7a91972189bf06a1ecf5c3d4a2 (diff) | |
download | vdr-plugin-xmltv2vdr-master.tar.gz vdr-plugin-xmltv2vdr-master.tar.bz2 |
Diffstat (limited to 'dist/epgdata2xmltv')
-rw-r--r-- | dist/epgdata2xmltv/epgdata2xmltv.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/epgdata2xmltv/epgdata2xmltv.cpp b/dist/epgdata2xmltv/epgdata2xmltv.cpp index 9437a18..de6fb26 100644 --- a/dist/epgdata2xmltv/epgdata2xmltv.cpp +++ b/dist/epgdata2xmltv/epgdata2xmltv.cpp @@ -93,7 +93,7 @@ static size_t WriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *da size_t realsize = size * nmemb; if (data->fd!=-1) { - write(data->fd,ptr,realsize); + if (write(data->fd,ptr,realsize)==-1) return -1; data->size+=realsize; } return realsize; |