From: Alejandro Colomar Date: Mon, 17 Feb 2025 14:33:46 +0000 (+0100) Subject: src/chfn.c: copy_field(): Rename local variable X-Git-Tag: 4.17.4~11 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=7a0f24f8d06224b713e0d2e7f025be71f4b858be;p=thirdparty%2Fshadow.git src/chfn.c: copy_field(): Rename local variable This makes it more obvious what that pointer is. Tested-by: Chris Hofstaedtler Signed-off-by: Alejandro Colomar --- diff --git a/src/chfn.c b/src/chfn.c index 3fc94dce1..834a0a277 100644 --- a/src/chfn.c +++ b/src/chfn.c @@ -217,13 +217,13 @@ static void new_fields (void) */ static char *copy_field (char *in, char *out, char *extra) { - char *cp = NULL; + char *next = NULL; while (NULL != in) { const char *f; f = in; - cp = stpsep(in, ","); + next = stpsep(in, ","); if (strchr(f, '=') == NULL) break; @@ -235,13 +235,13 @@ static char *copy_field (char *in, char *out, char *extra) strcat(extra, f); } - in = cp; + in = next; } if ((NULL != in) && (NULL != out)) { strcpy (out, in); } - return cp; + return next; } /*