systemctl: warning: ‘r’ may be used uninitialized in this function