Without the change build fails on gcc-11 as:
src/chk-systemd.cpp: In member function 'const char* ChkBus::getState(const char*)':
src/chk-systemd.cpp:120:15: error: ordered comparison of pointer with integer zero ('const char*' and 'int')
120 | if (state < 0) {
| ~~~~~~^~~