Change-Id: Id4349444446f10c28cc1eb6135bd7f4e616a33a0
Signed-off-by: Lohit Agarwalla <l.agarwalla@samsung.com>
char *ptr = NULL;
event_type = strtok_r(msg, ":", &ptr);
char *ptr = NULL;
event_type = strtok_r(msg, ":", &ptr);
+ if (event_type == NULL) {
+ ACCOUNT_ERROR("strtok_r() failed");
+ goto END;
+ }
+
id = strtok_r(NULL, ":", &ptr);
id = strtok_r(NULL, ":", &ptr);
+ if (id == NULL) {
+ ACCOUNT_ERROR("strtok_r() failed");
+ goto END;
+ }
ACCOUNT_SLOGD("msg(%s), event_type(%s), id(%s)", msg, event_type, id);
ACCOUNT_SLOGD("msg(%s), event_type(%s), id(%s)", msg, event_type, id);
if (tmp->account_subscription_callback)
tmp->account_subscription_callback(event_msg, account_id, tmp->user_data);
if (tmp->account_subscription_callback)
tmp->account_subscription_callback(event_msg, account_id, tmp->user_data);