Commit bbb5bf17 authored by Daniel Salzman's avatar Daniel Salzman

Mute some clang analyzer warnings

parent 45994398
......@@ -604,6 +604,7 @@ struct sockaddr_storage conf_addr(
if (val->code == KNOT_EOK) {
bool no_port;
conf_val(val);
assert(val->data);
out = yp_addr(val->data, &no_port);
if (out.ss_family == AF_UNIX) {
......@@ -745,6 +746,7 @@ conf_mod_id_t* conf_mod_id(
if (val->code == KNOT_EOK) {
conf_val(val);
assert(val->data);
mod_id = malloc(sizeof(conf_mod_id_t));
if (mod_id == NULL) {
......
......@@ -174,7 +174,7 @@ static int schema_copy(
{
// Copy the schema.
for (int i = 0; src[i].name != NULL; i++) {
int ret = set_item(dst + i, src + i, schema);
int ret = set_item(&dst[i], &src[i], schema);
if (ret != KNOT_EOK) {
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment