mirror of https://github.com/getdnsapi/getdns.git
Have add item default to adding an int of value 0
This commit is contained in:
parent
969ce94358
commit
7db1610c95
|
@ -337,6 +337,8 @@ getdns_list_add_item(struct getdns_list *list, size_t * index)
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
*index = list->numinuse;
|
*index = list->numinuse;
|
||||||
|
list->items[*index].dtype = t_int;
|
||||||
|
list->items[*index].data.n = 0;
|
||||||
list->numinuse++;
|
list->numinuse++;
|
||||||
return GETDNS_RETURN_GOOD;
|
return GETDNS_RETURN_GOOD;
|
||||||
} /* getdns_list_add_item */
|
} /* getdns_list_add_item */
|
||||||
|
|
Loading…
Reference in New Issue