Change-Id: I81d160bbf07ec2d916946f4a80a6fa796ad67284
Signed-off-by: Sameer Prakash Pradhan <sp.pradhan@samsung.com>
char *cursor = stream;
while (*cursor) {
if (*(cursor++) == VCAL_LF) {
- if (*(cursor++) == 'R' &&
+ if (*cursor && *(cursor++) == 'R' &&
*(cursor++) == 'R' &&
*(cursor++) == 'U' &&
*(cursor++) == 'L' &&
*(cursor++) == 'E' &&
*(cursor++) == ':') {
return true;
- } else if (*(cursor-1) == 'E' &&
+ } else if (*cursor && *(cursor-1) == 'E' &&
*(cursor++) == 'N' &&
*(cursor++) == 'D' &&
*(cursor++) == ':' &&
static void __work_component_property_attendee_mailto(calendar_record_h attendee, char *value)
{
RET_IF(NULL == value);
- RET_IF(NULL == *value);
+ RET_IF('\0' == *value);
RET_IF(NULL == attendee);
int ret = 0;