{
struct pbap_session *pbap = context;
struct pbap_object *obj = NULL;
- int ret;
+ int ret = 0;
void *request;
DBG("name %s context %p valid %d", name, context, pbap->cache.valid);
struct pbap_session *pbap = context;
const char *id;
uint32_t handle;
- int ret;
+ int ret = 0;
void *request;
DBG("name %s context %p valid %d", name, context, pbap->cache.valid);
GIOCondition cond, gpointer user_data)
{
struct network_adapter *na = user_data;
- struct network_server *ns;
+ struct network_server *ns = NULL;
struct network_session *session;
uint8_t packet[BNEP_MTU];
struct bnep_setup_conn_req *req = (void *) packet;
static void update_technologies(GKeyFile *file, struct btd_device *dev)
{
- const char *list[2];
+ const char *list[2] = {NULL, NULL};
size_t len = 0;
if (dev->bredr)
dev[0] = 0;
if (!strchr(opt, '/'))
strcpy(dev, "/dev/");
- strcat(dev, opt);
+ strncat(dev, opt, PATH_MAX);
break;
case 1:
static int print_advertising_devices(int dd, uint8_t filter_type)
{
- unsigned char buf[HCI_MAX_EVENT_SIZE], *ptr;
+ unsigned char buf[HCI_MAX_EVENT_SIZE] = {0};
+ unsigned char *ptr;
struct hci_filter nf, of;
struct sigaction sa;
socklen_t olen;