mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-11 07:11:41 +02:00
Fix static analysis issues
This commit is contained in:
parent
03ce0ed2df
commit
17efc6799c
22 changed files with 56 additions and 62 deletions
|
@ -85,7 +85,7 @@ void Daemon::daemonize()
|
|||
|
||||
if (!group_.empty())
|
||||
{
|
||||
struct group* grp = getgrnam(group_.c_str());
|
||||
const struct group* grp = getgrnam(group_.c_str());
|
||||
if (grp == nullptr)
|
||||
throw SnapException("no such group \"" + group_ + "\"");
|
||||
user_gid = grp->gr_gid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue