From 8f73f5ba738254a6c923a686896079cca776f09d Mon Sep 17 00:00:00 2001 From: matt335672 <30179339+matt335672@users.noreply.github.com> Date: Mon, 23 Oct 2023 15:23:07 +0100 Subject: [PATCH] Remove unnecessary assignments As per title. Assigments are made to variables which are immediately overwritten. --- sesman/libsesman/sesman_config.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sesman/libsesman/sesman_config.c b/sesman/libsesman/sesman_config.c index 568bdf6db8..e47a854999 100644 --- a/sesman/libsesman/sesman_config.c +++ b/sesman/libsesman/sesman_config.c @@ -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))