Skip to content

Commit

Permalink
Remove unnecessary assignments
Browse files Browse the repository at this point in the history
As per title. Assigments are made to variables which are immediately
overwritten.
  • Loading branch information
matt335672 committed Oct 23, 2023
1 parent da8fa05 commit 8f73f5b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sesman/libsesman/sesman_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 8f73f5b

Please sign in to comment.