mirror of
https://github.com/matrix-construct/construct
synced 2025-02-16 16:50:12 +01:00
ircd:Ⓜ️:state: Fix fallback path for empty type in count().
This commit is contained in:
parent
a63cfa86a2
commit
c31b29307b
1 changed files with 3 additions and 0 deletions
|
@ -197,6 +197,9 @@ size_t
|
|||
ircd::m::state::count(const string_view &root,
|
||||
const string_view &type)
|
||||
{
|
||||
if(!type)
|
||||
return count(root);
|
||||
|
||||
char buf[KEY_MAX_SZ];
|
||||
const json::array key
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue