0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-02-18 01:30:12 +01:00

ircd::db: Ensure default init on int prop retval.

This commit is contained in:
Jason Volk 2018-09-25 15:07:56 -07:00
parent 081125c362
commit 32496af5da

View file

@ -549,7 +549,7 @@ ircd::db::prop_int
ircd::db::property(const database &cd,
const string_view &name)
{
uint64_t ret;
uint64_t ret(0);
database &d(const_cast<database &>(cd));
const ctx::uninterruptible::nothrow ui;
if(!d.d->GetAggregatedIntProperty(slice(name), &ret))
@ -7457,7 +7457,7 @@ ircd::db::prop_int
ircd::db::property(const column &column,
const string_view &name)
{
uint64_t ret;
uint64_t ret(0);
database::column &c(const_cast<db::column &>(column));
database &d(const_cast<db::column &>(column));
if(!d.d->GetIntProperty(c, slice(name), &ret))