Unit tests for dbServerStats()

This commit is contained in:
Andrew Johnson
2025-02-03 12:54:26 -06:00
parent bcc6cb96ae
commit fd86f0ff04
2 changed files with 11 additions and 3 deletions

View File

@@ -131,7 +131,7 @@ int dbServerStats(const char *name, unsigned *channels, unsigned *clients)
{
dbServer *psrv = (dbServer *)ellFirst(&serverList);
if (state != running || !psrv)
if (!name || state != running || !psrv)
return -1;
while (psrv) {