Merge pull request #2833 from matt335672/remove_unnecessary_assignments

Remove unnecessary assignments
This commit is contained in:
matt335672 2023-10-23 15:42:32 +01:00 committed by GitHub
commit ee328784dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -333,14 +333,12 @@ config_read_security(int file, struct config_security *sc,
if (0 == g_strcasecmp(buf, SESMAN_CFG_SEC_USR_GROUP))
{
g_free(sc->ts_users);
sc->ts_users = NULL;
sc->ts_users = g_strdup(value);
}
if (0 == g_strcasecmp(buf, SESMAN_CFG_SEC_ADM_GROUP))
{
g_free(sc->ts_admins);
sc->ts_admins = NULL;
sc->ts_admins = g_strdup(value);
}
if (0 == g_strcasecmp(buf, SESMAN_CFG_SEC_ALWAYSGROUPCHECK))