if (stop)
msg = strtok_r(stop + 1, "\\", &save_ptr);
- if (app_id || msg) {
+ if (app_id > 0 && msg) {
if (app_id == 2 && strstr(msg, "READTXPOWER")) {
char cmd_buf[BT_HF_CMD_BUF_SIZE * 2] = {0, };
char power = __bt_hf_agent_get_tx_power(bt_hf_info->remote_addr);