From: Todd C. Miller Date: Thu, 3 May 2018 16:49:54 +0000 (-0600) Subject: Rename variables now that the string list functions are not ldap-specific. X-Git-Tag: SUDO_1_8_24^2~97 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=620070f493763c020c6ab898873ae65ead705466;p=sudo Rename variables now that the string list functions are not ldap-specific. --- diff --git a/plugins/sudoers/cvtsudoers.c b/plugins/sudoers/cvtsudoers.c index 0b9ec4e26..65b3cb513 100644 --- a/plugins/sudoers/cvtsudoers.c +++ b/plugins/sudoers/cvtsudoers.c @@ -585,25 +585,25 @@ cvtsudoers_parse_filter(char *expression) struct cvtsudoers_string * cvtsudoers_string_alloc(const char *s) { - struct cvtsudoers_string *ls; + struct cvtsudoers_string *cs; debug_decl(cvtsudoers_string_alloc, SUDOERS_DEBUG_UTIL) - if ((ls = malloc(sizeof(*ls))) != NULL) { - if ((ls->str = strdup(s)) == NULL) { - free(ls); - ls = NULL; + if ((cs = malloc(sizeof(*cs))) != NULL) { + if ((cs->str = strdup(s)) == NULL) { + free(cs); + cs = NULL; } } - debug_return_ptr(ls); + debug_return_ptr(cs); } void -cvtsudoers_string_free(struct cvtsudoers_string *ls) +cvtsudoers_string_free(struct cvtsudoers_string *cs) { - if (ls != NULL) { - free(ls->str); - free(ls); + if (cs != NULL) { + free(cs->str); + free(cs); } }