Permalink
Browse files

fix NULL pointer deference, closes #52

  • Loading branch information...
1 parent 446cf3f commit df31b08e8c075490e9dd3e7e42a7bf889cd0b6ec @pipelka committed Jun 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/libxvdr/src/XVDRData.cpp
View
2 src/libxvdr/src/XVDRData.cpp
@@ -444,7 +444,7 @@ void cXVDRData::ReadTimerPacket(cXVDRResponsePacket* resp, PVR_TIMER &tag) {
tag.iMarginEnd = 0;
char* p = (char*)strrchr(title, '~');
- if(*p == 0) {
+ if(p == NULL || *p == 0) {
tag.strTitle = title;
tag.strDirectory = "";
}

0 comments on commit df31b08

Please sign in to comment.