return LDB_ERR_OPERATIONS_ERROR;
}
- ZERO_STRUCT(els[msg->num_elements]);
+ els[msg->num_elements] = (struct ldb_message_element) {};
msg->elements = els;
msg->num_elements++;
int default_value)
{
const struct ldb_val *v = ldb_msg_find_ldb_val(msg, attr_name);
- char buf[sizeof("-2147483648")];
+ char buf[sizeof("-2147483648")] = {};
char *end = NULL;
int ret;
return default_value;
}
- ZERO_STRUCT(buf);
if (v->length >= sizeof(buf)) {
return default_value;
}
unsigned int default_value)
{
const struct ldb_val *v = ldb_msg_find_ldb_val(msg, attr_name);
- char buf[sizeof("-2147483648")];
+ char buf[sizeof("-2147483648")] = {};
char *end = NULL;
unsigned int ret;
return default_value;
}
- ZERO_STRUCT(buf);
if (v->length >= sizeof(buf)) {
return default_value;
}
int ldb_val_as_int64(const struct ldb_val *v, int64_t *val)
{
- char buf[sizeof("-9223372036854775808")];
+ char buf[sizeof("-9223372036854775808")] = {};
char *end = NULL;
int64_t result;
return LDB_ERR_OPERATIONS_ERROR;
}
- ZERO_STRUCT(buf);
if (v->length >= sizeof(buf)) {
return LDB_ERR_OPERATIONS_ERROR;
}
int ldb_val_as_uint64(const struct ldb_val *v, uint64_t *val)
{
- char buf[sizeof("-9223372036854775808")];
+ char buf[sizeof("-9223372036854775808")] = {};
char *end = NULL;
uint64_t result;
return LDB_ERR_OPERATIONS_ERROR;
}
- ZERO_STRUCT(buf);
if (v->length >= sizeof(buf)) {
return LDB_ERR_OPERATIONS_ERROR;
}